Re: class of "foo" is in {string} evaluates to false
Re: class of "foo" is in {string} evaluates to false
- Subject: Re: class of "foo" is in {string} evaluates to false
- From: Harald E Brandt <email@hidden>
- Date: Tue, 6 Nov 2007 23:15:16 +0100
On 6 nov 2007, at 22.55, Paul Berkowitz wrote: On 11/6/07 1:40 PM, "Harald E Brandt" <email@hidden> wrote: {class of "foo"} is in {string, Unicode text} Returns false!! {class of "foo"} is in {string, text, Unicode text} returns true! class of "foo" is in {string, text} returns true!
So class of "foo" --> text in Leopard?
Yes, and that was exactly what I quoted: (In addition, text, string, and Unicode text will all compare as equal. For example, class of "foo" is string is true, even though class of "foo" returns text. .)
And that's why the common construct: class of "foo" is in {string, Unicode text} should return true, because it should also do coercion! But the comparison, as quoted from the release note, does not work in the 'is in' case.
______heb____________________________
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden