Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re^2: $foo->bar = 14;

by dws (Chancellor)
on Dec 30, 2002 at 18:52 UTC ( #223128=note: print w/ replies, xml ) Need Help??


in reply to Re^2: $foo->bar = 14;
in thread $foo->bar = 14;

or am I missing something?

No, I missed something. I was reacting based on past misadventures with something very similar, without having read your code carefully enough. What you've written will indeed survive subclassing, though debugging through those generated methods is still going to be a problem. Mea culpa.


Comment on Re: Re^2: $foo->bar = 14;
Re^3: $foo->bar = 14;
by adrianh (Chancellor) on Dec 30, 2002 at 20:53 UTC

    I'm not the author of the code :-)

    Personally I very rarely generate accessors - not because I dislike generating them, but because I so rarely have a situation where bare-access to the object attributes is appropriate.

    Since many perl coders seem to spend a lot of time worrying about generating accessors I guess I must be weird!

    That said, the times I have generated accessors I've not come across debugging issues. I'm curious what problems you've encountered - can you illustrate?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://223128]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-09-16 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (35 votes), past polls