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

Home » Public Forums » archive » Re: Constant Size Array in Class Init
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: Constant Size Array in Class Init [message #76230 is a reply to message #76229] Mon, 23 May 2011 15:11 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 23, 7:03 pm, Chris Williams <fam36boozl...@gmail.com> wrote:
> I just realized that all the fields of the class are private by
> default and there is no way I am going to write 50 setters and getters
> for a data storage class. I'm just going to do what I need to do in
> python.

Just a couple of ideas:

It does not have to be 100 functions. It can be just two (get/
setproperty), either each one with 50 arguments, or just one argument,
with uses of execute() or scope_varfetch().

But in this case maybe just putting an extra layer would be more
convenient. You can group everything into a single container (by a
pointer, a structure, a hash or a list, whichever is more convenient),
and then pass just that one container with get/setproperty.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Constant Size Array in Class Init
Next Topic: Success!! Add and manipulate a visualization in standard iTool - Part II

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

Current Time: Wed Oct 08 19:36:27 PDT 2025

Total time taken to generate the page: 0.25228 seconds