comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Object Widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Object Widgets [message #17839 is a reply to message #17810] Tue, 16 November 1999 00:00 Go to previous messageGo to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
Martin Schultz, m218003@modell3.dkrz.de writes:

[calling SetProperty methods from Init]

> Any thoughts about this?

You are running the keyword check twice, which might slow you down
if you have a lot of objects to create (I've played with making
crystal structures containing tens of thousands of atom-objects), it
will also run checks on any properties that you don't want (or need)
to set at startup time.

If only to avoid spaghetti-ising the code, I would prefer to have
seperate copies of the simple assignments in your example. If setting
a property takes more than a up few lines I put it in its own private
method that is called from both Init and SetProperty. This probably
has more to do with the way my mind works than any real-world
efficiency.


Struan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: object widgets
Next Topic: Re: IDL + Linux (Ubuntu) ??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:35:06 PDT 2025

Total time taken to generate the page: 0.00421 seconds