Behavior>>isVariable ??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Behavior>>isVariable ??

florent trolat
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Behavior>>isVariable ??

Mathieu SUEN
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 <[hidden email]>:

> 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
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners