in reply to Re: Re: OO style: Placement of "new"
in thread OO style: Placement of "new"
new Foo;
might call either of
&new ('Foo'); # Calling new in the current package
or
Foo -> new (); # Calling new in Foo, or a parent class
And there are a bunch of cases that decide which one it will be.
And no, Perl doesn't like "prohibitions". You are free to do whatever you fancy. But the documentation does give advices on how not to get hurt.
Abigail
|
---|