Ian Jempson <[EMAIL PROTECTED]> wrote:
> In a few scripts I have noticed that there are references to Public
> methods in the comments. Nowhere do I see any ability to specify the
> scope of a method by designating it as Public, Private or Protected.
Hi Ian,
I plead guilty. In the behaviors that I have written for D7 and D8 I
have separated the handlers into sections, using comments such as:
-- EVENTS HANDLERS --
-- PRIVATE METHODS --
-- PUBLIC METHODS --
-- ERROR-CHECKING --
-- BEHAVIOR DESCRIPTION AND PARAMETERS --
This is intended to indicate the purpose of the handlers. It has no
effect on their scope. As Irv and St�phane have pointed out, in Lingo,
everything is public.
The "Public Methods" comment means "the next set of handlers allow you
to control this behavior from other scripts". The "Private Methods"
comment means "the next set of handlers are used internally by this
behavior, so it's probably not a good idea to call them from elsewhere".
They are about as useful as writing "Photos: do not bend" on an
envelope. (A conscientious postman is likely to write underneath
"Yes they do").
Cheers,
James
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]