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: has <email@hidden>
- Date: Tue, 11 Dec 2007 19:13:34 +0000
Phil wrote:
How about neither? Aside from the handful of data types that
AppleScript knows about, isn't its OO model RPC-based? (i.e. it
really isn't OO at all itself and passes the OO work off to the
application to resolve and, if appropriate, the application then
returns return something that AS understands?)
No, AppleScript's IPC support is a completely separate beast to its
own object system. Do not be fooled by its cunning plan of smooshing
all these different technologies together under lashings and lashings
of syntactic sugar until nobody can see what the heck is going on.:)
This thread is about writing object-oriented code in AppleScript,
which is eminently doable and something it's designed to support via
its 'script' type, although not something that many AppleScripters
make use of (or need to).
Hope that clarifies,
has
p.s. Apple event IPC is RPC+query based, not object-oriented. Although
this is a common mistake to make, thanks in large part to all the
syntactic sugar that AppleScript plonks on top of it.
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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