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

Re^2: Creating new objects from within a package

by hawtin (Prior)
on Jul 22, 2004 at 07:46 UTC ( [id://376493]=note: print w/replies, xml ) Need Help??


in reply to Re: Creating new objects from within a package
in thread Creating new objects from within a package

Yes, thank you dave_the_m that explains it. Of course in most real code this issue will never arise because the class will be declared before it is called.

And in this case I can fix the issue by "predefining" the forward ref with

{ package T; }

somewhere before the class is used

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found