• 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: OO Theory misconceptions (was Re: can I make a list of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OO Theory misconceptions (was Re: can I make a list of


  • Subject: Re: OO Theory misconceptions (was Re: can I make a list of
  • From: Timothy Bates <email@hidden>
  • Date: Fri, 01 Feb 2002 10:18:18 +1100

On 1/2/02 7:11 AM, "Anthony Adachi" <email@hidden> wrote:
> Actually, there's more than one way to write a "constructor" handler in
> AppleScript. Would this example be an instance of a right side-out
> constructor?:

--nifty script object deleted
> tell object_template to clone_oneself given desired_name:"Fred"
> set Fred to the result
> tell Fred to disclose_thy_name()

That is a very cool example, but I think what is missing is the ability to
have an initialisation handler called on load script

Set bill to load script file.lib

bill's birthday()
--> "I was born on 1/2/02"

Where on load script, a handler called initialise() is called, which does
some setup and creation-time stuff (in this case, setting a birthday
property).


  • Prev by Date: Re: OO Theory misconceptions (was Re: can I make a list of
  • Next by Date: Re: Export to a PDF from Quark
  • Previous by thread: Re: OO Theory misconceptions (was Re: can I make a list of
  • Next by thread: Re: OO Theory misconceptions (was Re: can I make a list of
  • Index(es):
    • Date
    • Thread