Re: list as string - is this a bug?
Re: list as string - is this a bug?
- Subject: Re: list as string - is this a bug?
- From: Matt Deatherage <email@hidden>
- Date: Thu, 8 Sep 2005 13:08:46 -0500
On 9/8/05 at 11:20 AM, Matt Neuburg <email@hidden> wrote:
> set L to {"hoo", "ha"}
> L as string -- "hooha"
> set L2 to {"hoo", item 2 of L}
> L2 as string -- "hooha"
> -- so far so good...
> -- but now...
> {"hoo", item 2 of L} as string -- "hoo"
I vote bug and would guess reference problem. Try this new ending:
-- so far so good...
-- but now...
set L3 to {"hoo", item 2 of L} -- {"hoo", "ha"}
{"hoo", item 2 of L} as string -- "hoo"
L3 as string -- "hooha"
My guess: internally, {"hoo", item 2 of L} is a list of a string and a reference, and the reference doesn't get converted to a string until it's assigned to something.
If you find other cases, please add them to the bug report I'm sure you're preparing. :-)
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
"Success is the ability to go from one failure to another with no loss of
enthusiasm." -- Sir Winston Churchill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden