http://www.perlmonks.org?node_id=315615


in reply to Re: Re: Foo is not a Bar, why?
in thread Foo is not a Bar, why?

No, but the fact that you have to use package globals to indicate inheritance, does indicate to me that inheritance was added later.

But... Everything was added later. Have you tried Perl 1.0? Almost everything we use now was bolted on later. And I'm glad it was.

Also, I'm glad they did this with a package global. Being able to change @ISA later has come in handy more than once for me.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: Re: Re: Foo is not a Bar, why?
by liz (Monsignor) on Dec 18, 2003 at 19:45 UTC
    Also, I'm glad they did this with a package global. Being able to change @ISA later has come in handy more than once for me.

    Not using package globals to indicate inheritance does not necessarily have to mean you wouldn't be able to change inheritance "on the fly".

    It's just that it's exposed to the outside world as a package global. It's like a car with the gear box on the outside. It sure will work, and you may even be able to switch gears even when you're not sitting in the car. But it still is an ugly sight!

    A sight that I've come to love, though, let there be no mistake about that!

    Liz