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

Home » Public Forums » archive » _ref_extra
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: _ref_extra [message #26268 is a reply to message #23132] Fri, 10 August 2001 13:07 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
"Pavel A. Romashkin" wrote:
>
> Oh well. Just thought I'd ask. I got around it after all, although it
> took me extra 20 lines of code. Basically, I did not want to write
> get_property methods the old way anymore, inspired by David's complaint
> that then you have to revisit them every time you need to alter the
> object. I have one get_property for everything now, and it works :-)
> Thank you,
> Pavel

And do you mind sharing it? I once did this (in the pre-_REF_EXTRA
days) by changing GetProperty to a function, returning a structure with
keyword:value pairs, and chaining down the inheritance tree by
concatenating the structures returned. I abandoned it when _REF_EXTRA
arrived.

Despite the inconvenience, GetProperty as it is does have one thing in
its favor: if you just allow those fields to be "gotten" that you won't
mind keeping the same, you can isolate yourself from your own (OK, my
own) tendency to perform quick-fixes by digging deeper than you should.
My recommendation: only add GetProperty keywords when you run into the
first time you actually *need* that value, and even then spend some time
convincing yourself that you're happy to fix that field in stone, no
matter what other changes the remainder of the class undergoes.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: processing widget events from multiple hierarchies
Next Topic: Re: polyfill errors?

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

Current Time: Wed Oct 08 19:02:48 PDT 2025

Total time taken to generate the page: 0.00431 seconds