Re: Records
Re: Records
- Subject: Re: Records
- From: Emmanuel <email@hidden>
- Date: Thu, 1 Mar 2001 01:15:45 -0600
At 12:24 -0600 28/02/01, Olof wrote:
>
>
Here's the easiest way to do it using only the standard additions:
>
>
__begin script__
>
>
to usrf(theList)
>
set n to {+class usrf;:theList}
>
run script "
>
to run (arg)
>
arg as record
>
end run " with parameters n
>
end usrf
>
>
usrf({"a", 1, "b", 2})
Alternately, and maybe less cryptic:
-------------------------
on usrf(theList)
script
{<<class usrf>>:theList}
end script
run script result
end usrf
usrf({"a", 1, "b", 2})
-------------------------
Emmanuel