[Newbies] Character allInstances size=0 for 5.3 latest

Vaidotas Did┼żbalis vaidasd at gmail.com
Sat Feb 29 20:11:38 UTC 2020

David and Subbu,
Thank you for your explanations, but ... but we have characters in the
image. Having a characters in the image means that Character has instances.
If alInstances method cannot report about them, it shall fire exception
perhaps, or, name allInstances must be changed to something else, isn't it?

On Sat, Feb 29, 2020 at 10:33 AM K K Subbu <kksubbu.ml at gmail.com> wrote:

> On 29/02/20 12:26 AM, Vaidotas Did┼żbalis wrote:
> > Hello,
> > Character allInstances size=0. Why?
> Good observation!
> allInstances gives a list of objects of the given class stored in Object
> Memory. Character and SmallInteger are immediate values (type 7), stored
> directly in an oop, so they have no instances in Object Memory. You get
> other such types with:
> Class allSubInstances select: [:c | c instSpec = 7]
>    an OrderedCollection(SmallInteger SmallFloat64 Character)
> See the comment of Behavior>>instSpec for other instance types.
> HTH .. Subbu
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20200229/0f25d977/attachment.html>

More information about the Beginners mailing list