Re: Re: Parents/Child Scripts
Re: Re: Parents/Child Scripts
- Subject: Re: Re: Parents/Child Scripts
- From: has <email@hidden>
- Date: Tue, 14 May 2002 12:03:05 +0100
Lachlan Deck wrote:
>
my question regarding this topic is whether AS has the ability to
>
actually hide it's parameters?
>
i.e., can a property be defined as protected or something similar?
No. AS has no concept of privacy. There are no locks on the bathroom doors.
>
It seems to me that any property defined is open to mischief...
Methods too. (And script objects.)
To avoid accidents, you should start with a good naming convention. The
simplest might be to precede private names with an underscore, eg:
publicMethod(), _privateMethod(), and then tell users not to use
underscores in their own names - this should be easy enough to remember.
Beyond that, it's a matter of careful design to make sure you don't go
tripping over your own toes. Oh, and make sure you understand how different
things are scoped - knowing where the boundaries exist is important in
doing that careful design.
Perhaps a future version of AS will allow you to make private/public
declarations, just as you can explicity declare local/global scope now.
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.