[Glass] isBytes for fixed pointers but superclass with bytes

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Mon Sep 1 19:09:39 PDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140901/53585a5e/attachment.html>


More information about the Glass mailing list