Float variableWordSubclass

classic Classic list List threaded Threaded
6 messages Options
btc btc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Float variableWordSubclass

When I define...
    Float subclass: MyPrefixFloat

why does it get changed to...
    Float variableWordSubclass: #MyPrefixFloat

and is that just what the Epsilon symbol next to the class is?

cheers, Ben

btw, the reason I am doing this is to simplify automating the import of
a UML model with a standard prefix for all classes including this
"primitive"
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Levente Uzonyi-2 Levente Uzonyi-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Float variableWordSubclass

On Wed, 4 Jan 2012, Ben Coman wrote:

> When I define...
>   Float subclass: MyPrefixFloat

I guess you meat Float subclass: #MyPrefixFloat .

>
> why does it get changed to...
>   Float variableWordSubclass: #MyPrefixFloat

Float is already a variableWordSubclass, so its subclasses must also be
variableWordSubclasses, otherwise the indexable slots would be lost.

>
> and is that just what the Epsilon symbol next to the class is?

What Epsilon symbol?

>
> cheers, Ben
>
> btw, the reason I am doing this is to simplify automating the import of a UML
> model with a standard prefix for all classes including this "primitive"

Subclassing Float doesn't seem to be a good idea, I'm also not sure if it
will work (especially with Cog).


Levente

> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
btc btc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Float variableWordSubclass

Levente Uzonyi wrote:

> On Wed, 4 Jan 2012, Ben Coman wrote:
>
>> When I define...
>>   Float subclass: MyPrefixFloat
>
> I guess you meat Float subclass: #MyPrefixFloat .
>
>>
>> why does it get changed to...
>>   Float variableWordSubclass: #MyPrefixFloat
>
> Float is already a variableWordSubclass, so its subclasses must also
> be variableWordSubclasses, otherwise the indexable slots would be lost.
>
>>
>> and is that just what the Epsilon symbol next to the class is?
>
> What Epsilon symbol?
>
Epsilon - the letter of the Greek alphabet used in maths.
But doh!  I should have said "summation" symbol
http://en.wikipedia.org/wiki/Summation
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Levente Uzonyi-2 Levente Uzonyi-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Float variableWordSubclass

On Thu, 5 Jan 2012, Ben Coman wrote:

> Levente Uzonyi wrote:
>> On Wed, 4 Jan 2012, Ben Coman wrote:
>>
>>> When I define...
>>>   Float subclass: MyPrefixFloat
>>
>> I guess you meat Float subclass: #MyPrefixFloat .
>>
>>>
>>> why does it get changed to...
>>>   Float variableWordSubclass: #MyPrefixFloat
>>
>> Float is already a variableWordSubclass, so its subclasses must also be
>> variableWordSubclasses, otherwise the indexable slots would be lost.
>>
>>>
>>> and is that just what the Epsilon symbol next to the class is?
>>
>> What Epsilon symbol?
>>

There's no such thing in Squeak, so I don't know. Maybe you shoud ask it
from Pharo users.


Levente

> Epsilon - the letter of the Greek alphabet used in maths.
> But doh!  I should have said "summation" symbol
> http://en.wikipedia.org/wiki/Summation
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Karl Ramberg Karl Ramberg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Float variableWordSubclass



On Sat, Jan 7, 2012 at 7:04 PM, Levente Uzonyi <[hidden email]> wrote:
On Thu, 5 Jan 2012, Ben Coman wrote:

Levente Uzonyi wrote:
On Wed, 4 Jan 2012, Ben Coman wrote:

When I define...
 Float subclass: MyPrefixFloat

I guess you meat Float subclass: #MyPrefixFloat .


why does it get changed to...
 Float variableWordSubclass: #MyPrefixFloat

Float is already a variableWordSubclass, so its subclasses must also be variableWordSubclasses, otherwise the indexable slots would be lost.


and is that just what the Epsilon symbol next to the class is?

What Epsilon symbol?


There's no such thing in Squeak, so I don't know. Maybe you shoud ask it from Pharo users.


Levente

I've seen it in OmniBrowser with RefactoringEngine.
I'm not sure of it's purpose.

Karl


Epsilon - the letter of the Greek alphabet used in maths.
But doh!  I should have said "summation" symbol
http://en.wikipedia.org/wiki/Summation
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Tobias Pape Tobias Pape
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Float variableWordSubclass


Am 2012-01-07 um 20:00 schrieb karl ramberg:

>
>
> On Sat, Jan 7, 2012 at 7:04 PM, Levente Uzonyi <[hidden email]> wrote:
> On Thu, 5 Jan 2012, Ben Coman wrote:
>
> Levente Uzonyi wrote:
> On Wed, 4 Jan 2012, Ben Coman wrote:
>
> When I define...
>  Float subclass: MyPrefixFloat
>
> I guess you meat Float subclass: #MyPrefixFloat .
>
>
> why does it get changed to...
>  Float variableWordSubclass: #MyPrefixFloat
>
> Float is already a variableWordSubclass, so its subclasses must also be variableWordSubclasses, otherwise the indexable slots would be lost.
>
>
> and is that just what the Epsilon symbol next to the class is?
>
> What Epsilon symbol?
>
>
> There's no such thing in Squeak, so I don't know. Maybe you shoud ask it from Pharo users.
>
>
> Levente
>
> I've seen it in OmniBrowser with RefactoringEngine.
> I'm not sure of it's purpose.

AFAIK,  it is an indicator that the class inherits from Magnitude.
It is present in omnibrowsers.

Best
        -Tobias_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Loading...