• 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: Is AppleScript's OOP 'prototype-based' or 'class-based'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
echo email@hidden@nl | tr a-z@. p-za-o.@

 _______________________________________________
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

  • Follow-Ups:
    • Re: Is AppleScript's OOP 'prototype-based' or 'class-based'?
      • From: Philip Aker <email@hidden>
References: 
 >Is AppleScript's OOP 'prototype-based' or 'class-based'? (From: Brennan <email@hidden>)

  • Prev by Date: Is AppleScript's OOP 'prototype-based' or 'class-based'?
  • Next by Date: Re: Is AppleScript's OOP 'prototype-based' or 'class-based'?
  • Previous by thread: Is AppleScript's OOP 'prototype-based' or 'class-based'?
  • Next by thread: Re: Is AppleScript's OOP 'prototype-based' or 'class-based'?
  • Index(es):
    • Date
    • Thread