Re: OO Theory misconceptions (was Re: can I make a list of
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).