[Glass] isBytes for fixed pointers but superclass with bytes

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Tue Sep 2 08:23:31 PDT 2014


Ok...I answer myself. Today I found #isBytesOrSpecial.


On Mon, Sep 1, 2014 at 11:09 PM, Mariano Martinez Peck <
marianopeck at gmail.com> wrote:

> Hi guys,
>
> In pharo, we don't have a class defined as "fixed pointers" with a "bytes"
> superclass. The following expression is empty in Pharo:
>
> Smalltalk allClasses select: [ :each | (each isBytes and: [ each
> allSubclasses size > 0 ])
> and: [ each allSubclasses anySatisfy:  [ :aSubClass | aSubClass isBytes
> not  ] ]
>  ]
>
> But in GemStone I have 2 exceptions:
>
> anArray( AbstractCharacter, Float)
>
> To me...it looks very strange that, for example, SmallDouble answers false
> to #isBytes. So I wonder.....since these are very strange scenarios, as a
> simple workaround, could we implement the correct #isBytes, #isVariable etc
> for those particular subclasses?
>
> Thoughts?
>
> Thanks,
>
> --
> Mariano
> http://marianopeck.wordpress.com
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140902/9430fc23/attachment.html>


More information about the Glass mailing list