Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: More Macro work...out to export a definition to next-outer level?

by ikegami (Pope)
on Oct 01, 2010 at 16:22 UTC ( #862982=note: print w/ replies, xml ) Need Help??


in reply to Re^4: More Macro work...out to export a definition to next-outer level?
in thread More Macro work...out to export a definition to next-outer level?

I think there's a confusion in terms. I'm using class var to mean global to the whole class and each instance of the class.

The confusion is yours. You've been saying the above, but you haven't been doing the above. Like I said, your instance constructor populates the class attributes instead of the instance attributes.

There shouldn't be multiple initializations

Then they should be initialised outside of any function.

Does this clear anything up?

No. I understood fine all along.


Comment on Re^5: More Macro work...out to export a definition to next-outer level?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-11-21 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (103 votes), past polls