Re: Io N00B - basic questions
Thanks Jeremy - yes this is helpful.
> Consider:
> foo ::= 42
> Creates a slot called "foo" with the value 42, and creates a "setFoo"
which takes a single argument, the value to update the "foo" slot with.
Then is a 'setWhatever' like a property encapsulation? In other words, if I
use the " *::= *" operator/message, I *must* then use it for subsequent
access to the 'foo' (or 'Whatever') slot? Or is " ::= " just allowing
access to more of what goes on under the hood, that is " *:= " hides* the
setWhatever, whereas "::=" bubbles it up so to speak?
If I'm not totally off here, does that then mean then I'd have to use
setFoo := 99 to get foo to be 99 - and that
foo:=99 would be something else / or raise an exception?
( I'll test this of course, but thought it would be good to post the info
anyway, as several of my programming pals are also fuzzy on this too. )