So, I thought I'd ask this question about programming style before I spend 
too much time doing speed comparisons for myself.

I'm writing a Toggle Button behavior that can also be used as the ancestor 
of several different behaviors such as a Radio Button set, and a Tree 
Button sort of set (clicking a node off turns off nodes-leaves below it, 
clicking a node-leaf off turns on the parents above it).

The Toggle Button behavior I already have works just fine, but it was 
written with properties being accessed just as pPropertyName, and not as 
me.pPropertyName.  So I either need to copy the properties it uses 'up' to 
the ancestor, or change the pProperty references to me.pProperty.  It seems 
to me that the copyProps would be more elegant and proper-OOP-technique.

The toggles themselves probably aren't going to ever encounter speed 
issues, but I believe that adopting a me.pProperty style could result in 
slower performance than pProperty referencing, especially if I adopt 
me.pProperty referencing for all property referencing in the future so 
classes that I decide to use as ancestors don't have to be changed.

Any thoughts?

roymeo


[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