Re: Is AppleScript's OOP 'prototype-based' or 'class-based'?
Re: Is AppleScript's OOP 'prototype-based' or 'class-based'?
- Subject: Re: Is AppleScript's OOP 'prototype-based' or 'class-based'?
- From: Philip Aker <email@hidden>
- Date: Tue, 11 Dec 2007 01:28:25 -0800
On Dec 11, 2007, at 1:01 AM, Brennan wrote:
For example, we can't suddenly do something like
set stamina of SteveJobs to 25
or
set SteveJobs to SteveJobs & {stamina:25}
...as we can with records, because SteveJobs has no existing property called stamina.
script sj property «class pAll» : {strength:4, dexterity:99, magicSkill:0} end script
set sj's «class pAll» to sj's «class pAll» & {luminosity:2}
Philip Aker
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden