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