Hello,

Is having this kind of set up in your Object O.K.



on settheProp me, theProp, theVal
   me[theProp] = theVal
end

on broadcastProp me, theProp
   return me[theProp]
end

settheProp #newProp, 42 -- creates and assigns a new property with the instance


settheProp #existingProp, 42 -- assigns to an existing prop or creats 
a new one if it's not there.





The above means you don't have to write a method (to get/set) a for 
each individual prop in your object. Just a space saver really. 
Obviously you'd do checks on the param variables before you really 
used it.
-- 




regards

shoreditch
london ec2a

[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