• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rogue list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: checking values in property problem
  • Next by Date: Re: Current date notation
  • Previous by thread: Re: Rogue list?
  • Next by thread: Re: Rogue list?
  • Index(es):
    • Date
    • Thread