Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: (jeffa) 3Re: My first stab at OO perl...

by v_thunder (Scribe)
on Jul 17, 2002 at 04:18 UTC ( #182324=note: print w/replies, xml ) Need Help??


in reply to Re: (jeffa) 3Re: My first stab at OO perl...
in thread My first stab at OO perl...

Here I go replying to myself again... :-)

Your code *does* allow for inheritance, it just doesn't allow for someone to create a new instance by calling $foo->new() on an already made instance. Right?

So: I now get it. Though, personally, I'd rather have it die immediately than not work correctly. And, btw, it's rather confusing to have that bit in perltoot(1).

Thanks for making me think about this! :)

-Dan

  • Comment on Re: Re: (jeffa) 3Re: My first stab at OO perl...

Replies are listed 'Best First'.
Re: Re: Re: (jeffa) 3Re: My first stab at OO perl...
by Theseus (Pilgrim) on Jul 17, 2002 at 20:26 UTC
    No... The way my code is, it WILL allow for you to create a new instance by calling $object->new() on an already running instance, if you remove the code that merlyn disapproves of, it won't die, but it will silently work incorrectly. That's my gripe with it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182324]
help
Chatterbox?
[stevieb]: I am thankful that I fell into Perl years ago in the manner I did. I don't believe there is another language that people care about so much, that they're willing to give everything. Langs come and go, but in Perl, it seems, things remain consistent.
[stevieb]: The people back then (~2000) are the same people now, but with much more experience. I'm appreciative that I fell into the Perl rabbit hole.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-02-25 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (364 votes). Check out past polls.