Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 taking refuge in the Monastery: (7)
As of 2014-12-28 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls