[Newbies] Behavior>>isVariable ??

Mathieu SUEN mathk.sue at gmail.com
Tue Aug 1 10:04:26 UTC 2006


It is instance var that you access by #at:

For exemple you have Array

a := Array new: 3.
a at: 1 put: true
...

Math

That mean you have 3 indexable variable

2006/7/30, florent trolat <trolat.florent at laposte.net>:
> Hi
>
> Someone can explain me what's "an indexable variable" in SM? :-(
>
> __________Behavior___________
> isVariable
>     "Answer whether the receiver has indexable variables."
>
>     ^ self instSpec >= 2
> ____________________________
>
> Thanks. :-)
>
> Florent
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>


More information about the Beginners mailing list