hi all

I'm trying hard to write something that obeys OOP conventions as purely
as possible ( not simply as an exercise in itself but because when my
contract is over I have to hand the project over for maintenance to
junior programmers, so i want to keep everything as extensible as
possible without necessitating that they dig around inside my objects)


So I have come up with a couple of things I'm not sure about from the
purist viewpoint.

1. When, if ever, is it 'allowable' to access a property without using
an accessor method. e.g. I have a general object manager called HQ which
holds references to all my other objects (speechMngr, animationMngr
etc.) Now say I want to make a call to the speechMngr, is it OK to say

      call(#speak, HQ.speechMngr, "words...")

or should I use an accessor method:

      pMySpeaker = call(#mGetSpeechObject, HQ)

then use 

      call(#speak, pMySpeaker , "words...")

2. I can't find a way to construct a movie without using at least one
global variable, in the above e.g. it's the var HQ which holds
references to all the other objects and needs to be accessible from all
scripts. I guess I'm answering my own question there. Anyway, I'd be
interested in any thoughts.

cheers

Jon

[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!]

Reply via email to