[TAO] value() to obtain pointer functionality

dunbarx at aol.com dunbarx at aol.com
Mon Jul 28 18:13:27 EDT 2014


Mike.


Oh. Now I see what you mean.



This is not pointers and handles, though I think it is adorable you characterized it that way. It is xTalk string evaluation gone wild.



When you say:



value(c)




LC evaluates a naked "a" --no quotes. The literal has been supplanted


So when you get the value of that, LC thinks you are talking about the original variable, which contains a "1".


I know you know this.


So does it seem counter to all we know and love? I would understand if you say yes. Is it a feature to be exploited, or a demon to be exorcised? In other words, is it "where does LC get off evaluating that very explicit literal in such a manner" or "this is perfectly normal behavior; what's the beef?".


Craig




-----Original Message-----
From: Mike Kerner <MikeKerner at roadrunner.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Mon, Jul 28, 2014 5:40 pm
Subject: Re: [TAO] value() to obtain pointer functionality


OMG AND IT'S SCREAMING FAST COMPARED TO DO.  AAAAAAAAAAAAAAAUGH!


On Mon, Jul 28, 2014 at 5:33 PM, Mike Kerner <MikeKerner at roadrunner.com>
wrote:

> Stop it.  Now you're just making me mad.  I just discovered this, and now
> I'm getting hazed with it.
>
> Well played, sir.  Well played.
>
>
> On Mon, Jul 28, 2014 at 5:26 PM, Mark Wieder <mwieder at ahsoftware.net>
> wrote:
>
>> Mike-
>>
>> You can also get tricky and do things like:
>>
>> on mouseUp
>>    local a, b
>>
>>    put "hello" into a
>>    put a & "()" into b
>>    put value(b)
>> end mouseup
>>
>> function hello
>>    return "goodbye"
>> end hello
>>
>> --
>>  Mark Wieder
>>  ahsoftware at gmail.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."
>



-- 
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."
_______________________________________________
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

 




More information about the use-livecode mailing list