[Pharo-project] is there an easy way to know the SmallInteger instances?
Mariano Martinez Peck
marianopeck at gmail.com
Sun Nov 21 23:59:32 CET 2010
On Sun, Nov 21, 2010 at 11:55 PM, Schwab,Wilhelm K <bschwab at anest.ufl.edu>wrote:
> I see your point, but given the immediate object encoding tricks I'm not
> sure it's possible.
:( It's a pity. Because most users should not be aware of this. This
should be completly transparent for the developer.
> Would the class methods #minVal and #maxVal be of any use to you?
No :( Maybe it is better in this way: I want to know how many instances/temp
var have a SmallInetger. This means, how many slots/words have a 1 in the
last bit. This is what I understand by "Smallinteger instances".
> From: pharo-project-bounces at lists.gforge.inria.fr [
> pharo-project-bounces at lists.gforge.inria.fr] On Behalf Of Mariano Martinez
> Peck [marianopeck at gmail.com]
> Sent: Sunday, November 21, 2010 4:41 PM
> To: Pharo Development
> Subject: [Pharo-project] is there an easy way to know the SmallInteger
> If I do SmallInteger alIInstances I get an empty array, and of course, with
> SmallInteger instanceCount I get zero.
> Now, I can understand that from the VM point of view, but for the final
> user, this should be polymorphic. For example, for instanceCount, I would
> like to know all the "variable slots" that has a 1 in the last bit.
> Is this already possible? if true, which message? if not, should I hack
> in the vm and code a primitive that does this?
> And the same for allInstances, if I can inspect 5, I should be also to
> inspect SmallInteger allInstances, and SmallInteger allInstances first,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-project