a couple of curios
dunbarx at aol.com
dunbarx at aol.com
Wed Jan 22 16:08:12 EST 2014
Hi.
Right you are, and this (the dictionary does say that "of" is a synonym of "in") works as well.
on mouseUp
local tmp
put "do " into tmp
put "what?" after of of in in of in tmp -- !!!!!
put tmp
end mouseUp
Weird...
This is not at all possible with something like:
put "woops" onto into tmp
Craig Newman
-----Original Message-----
From: Martin Baxter <mblivecode at harbourhosting.co.uk>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Jan 22, 2014 3:52 pm
Subject: a couple of curios
While reviewing some old scripts that have been in regular use but not
actually edited for some time I came across:
put ".js" after in jsfname
And was surprised it compiled but it does, it even works
on mouseUp
local tmp
put "do " into tmp
put "what?" after in tmp
put tmp
end mouseUp
## Output = "do what?"
Maybe "in" is being ignored by the compiler as a bit of "superfluous
cosmetic english"
############
And also the construct:
put "string" onto var
Not totally surprised that it compiles, but it surprised me to find that
it actually works:
on mouseUp
local tmp
put "safe" into tmp
put "woops" onto tmp
put tmp
end mouseUp
>> Produces "woops"
Martin
_______________________________________________
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