[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Modules] Glue



At 8:15 AM -0400 9/14/99, Chris Nandor wrote:
>I believe it should be the case that every key to the record
>should be a class/property name.  Any thoughts or insights?


In my mind there's a one-to-one mapping between an applescript
record and a perl hash.

in AppleScript:

set foo to {one:"i",two:"ii",three:"iii"}
get two of foo


in Perl:
%foo = ('one'=>'i','two'=>'ii','three'=>'iii');
$foo{'two'};


That is to say that the properties of the applescript record
are analogous to the keys of the perl hash.

If that's not what you were asking, then nevermind.  8^)

-Eric



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org