Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 perusing the Monastery: (8)
As of 2014-09-20 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (158 votes), past polls