Re: Rogue list?
Re: Rogue list?
- Subject: Re: Rogue list?
- From: "Arthur J Knapp" <email@hidden>
- Date: Fri, 11 May 2001 09:38:53 -0400
>
Subject: Re: Rogue list?
>
Date: Thu, 10 May 2001 18:24:17 -0700
>
From: Michelle Steiner <email@hidden>
>
On 5/10/01 3:57 PM, Arthur J Knapp <email@hidden> wrote:
>
> set emptyRecord to {} as record
>
>actually does return an empty record, which one could then use for
>
>comparison operations.
>
Well then, how about this gem?
>
>
set foo to {} as record
>
set bar to {} as list
>
foo = bar
>
--> true
Oh, well. It was a nice theory while it lasted. ;-)
So:
{} as record
does return an empty record, but it isn't suitable for comparison
operations, though it does error like a record when you attempt to
append to it:
set foo to {} as record
set bar to {} as list
set end of foo to 1 -- > error "Can't set end of {} to 1"
set end of bar to 1
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://MacScripter.net