Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[LanX]: fun, last time I was in Britain people had problems with my name, just rarely they said "like the children TV star Rolf Harris?", this time most replied instantly "Rolf? like the pedophile Rolf Harris" ?
LanX is perlophile
[ambrus]: Corion: read https://metacpan. org/pod/release/ MLEHMANN/AnyEvent- 7.13/lib/AnyEvent. pm#SUPPLYING-YOUR- OWN-EVENT-MODEL- INTERFACE in that case

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2016-12-08 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.