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

Re: Module API

Thread Previous | Thread Next
From:
demerphq
Date:
September 30, 2012 06:18
Subject:
Re: Module API
Message ID:
CANgJU+V+EfBz1CYcA=h2aYMDky-mCnP9Eoe+njyL=OvGyhLFHQ@mail.gmail.com
On 30 September 2012 10:52, Johan Vromans <jvromans@squirrel.nl> wrote:
> 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.

So propose one. What does the api look like?

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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