[TAO] value() to obtain pointer functionality
Mike Kerner
MikeKerner at roadrunner.com
Mon Jul 28 19:57:37 EDT 2014
Craig,
This is equivalent to dereferencing a pointer, which is what I was
referring to. After reading the explanation in the dictionary, this is not
what I expected. When I said value(b), I expected LC to just dumbly return
"a", but was sort-of hoping that I'd get "1", so part of me is giddy, and
part of me is annoyed at all the code I've written that would have been
much shorter and simpler with it, and faster.
You know, things like repeats that walk x1..x24
Richard,
The thing that surprises me is that evaluating "b" to get "a", and then
saying "hmm, I wonder what that means", looking it up, and returning IT'S
value is faster than the fastest DO I could generate.
On Mon, Jul 28, 2014 at 7:36 PM, Richard Gaskin <ambassador at fourthworld.com>
wrote:
> Mike Kerner wrote:
> > OMG AND IT'S SCREAMING FAST COMPARED TO DO. AAAAAAAAAAAAAAAUGH!
>
> Most things are.
>
> The "do" command has to do the equivalent of what happens when you compile
> a script, in addition to executing it.
>
> There are some extremely rare cases where "do" is useful, but most uses I
> come across are just habits held over from more limited xTalks like
> HyperCard.
>
> BTW: What does "TAO" signify?
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
More information about the use-livecode
mailing list