MACSCRPT Archives

May 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Stockly, Ed" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 20 May 2009 14:10:58 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
I should have been more clear:

>Mark R>>   List concatenation is more for combining two lists that might
already have multiple items each.

I was referring to that statement when I said
 
>Me> Yes, but if you're dealing with records and combining lists and records
this is bound to be problematic.

And, I should have specified that using concatenation in combining lists and
records that have multiple items is bound to be problematic.

> set recordList to {}
> set oneRecord to {foo:1, bar:"hello"}
> set end of recordList to oneRecord
> set twoRecord to {foo:2, bar:"Goodbye"}
> set end of recordList to twoRecord
> recordList
> --->{{foo:1, bar:"hello"}, {foo:2, bar:"Goodbye"}}

Yes. This is not concatenation and is exactly what Mark, Mark and I
suggested.

I think we have reached a consensus.

ES

ATOM RSS1 RSS2