http://qs321.pair.com?node_id=522841


in reply to Re: Self creating OO Module field accessors...
in thread Self creating OO Module field accessors...

I hear you! If all this module was functionally only a struct I'd certainly agree with you. Except in the case of this module there is a lot more going on.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
  • Comment on Re^2: Self creating OO Module field accessors...

Replies are listed 'Best First'.
Re^3: Self creating OO Module field accessors...
by Roy Johnson (Monsignor) on Jan 18, 2006 at 16:35 UTC
    You might consider whether you have an object that has-a struct that you should allow public access to. Then you'd need only one accessor method that returns a ref to the struct and allow the user to stomp all over it access its fields as required. :-)

    Caution: Contents may have been coded under pressure.