On Jul 21, 2010, at 9:15 PM, Mike Turchenkov wrote:

> Files that are created with AppWizard, sometimes contain "app =
> self.Application" string in some methods.
> 
> AFAIU, this feature exists only for comfort if I want to use app
> object in method, and can be deleted otherwise.
> 
> Is it right?


        It exists mostly for comfort, but there are some performance 
considerations, too. "self.Application" is a property reference, which means 
that it calls the getter for the Application property of the current object. 
This has to run some code to determine the correct reference to return every 
time the property is accessed. By accessing the property once and then using 
the reference returned by it many times, it does make a tiny improvement in 
performance. That's why throughout Dabo if a property needs to be referenced 
more than once, it is usually only accessed once and then that reference is 
used many time.


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to