develooper Front page | perl.perl5.porters | Postings from September 2012

Re: Module API

Thread Previous | Thread Next
From:
Johan Vromans
Date:
September 30, 2012 01:52
Subject:
Re: Module API
Message ID:
m2wqzbnb8u.fsf@phoenix.squirrel.nl
Leon Timmermans <fawaka@gmail.com> writes:

>>   sub package_is_loaded { %{$_[0]."::"} }
>
> That checks the existence of a package in the symbol table, not the
> loading or not of a module. After require Foo::Bar, %Foo:: will exist,
> even though Foo was never loaded.

You hit the nail on the head ;)

That's why I think we need a much better package/module load/loaded API.
One that can only be implemented by hooking into the Perl guts.

-- Johan


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About