Re: String-to-constant coercions (was Bug in OS 9.2.1/2 S > 1.6-1.8.2b? and Set t to true as boolean)
Re: String-to-constant coercions (was Bug in OS 9.2.1/2 S > 1.6-1.8.2b? and Set t to true as boolean)
- Subject: Re: String-to-constant coercions (was Bug in OS 9.2.1/2 S > 1.6-1.8.2b? and Set t to true as boolean)
- From: Kai Edwards <email@hidden>
- Date: Tue, 26 Feb 2002 01:12:51 +0000
on Sun, 24 Feb 2002 01:58:31 +0100, Emmanuel <email@hidden>
wrote:
>
> * "true" as constant --> true
>
> "false" as constant --> Can't make "false" into a constant.
>
> There may be a perfectly rational explanation for some results but - as for
>
> the rest - well, I'm still trying to work it all out!) 8-P
>
The explanation could be that:
>
>
---------------------
>
"abcd" as constant
>
---------------------
>
>
be a synonym for:
>
>
---------------------
>
<<constant ****abcd>>
>
---------------------
>
>
In particular, "s as constant" only works if s'length is 4.
>
>
For instance:
>
>
---------------------
>
"fals" as constant --> false
>
"no " as constant --> no
>
"pnam" as constant --> name
>
---------------------
>
Ah - *now* the light is dawning! All is much clearer (and embarrassingly
obvious) - now the path is illuminated. :)
Many thanks for that, Emmanuel!
Kai
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.