[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000125.002] Problem in documentation of Fcntl constants
Marc Lehmann writes:
> > "Real" autoload would provide a way to get a reference to the
> > autoloaded subroutine without executing it, and would allow a
> > Given the current preference of no-new-magic-uppercase-names, what about
> >
> > use autoload proto => \&get_proto, body => \&get_body;
>
> modules like the gimp do not know wether a function to autoload exists
> before it is being called, so it would be even cooler if there were some kind
> of fall-back mechanism who behaved similar to the current AUTOLOAD, except
> that it would return a reference.
Yes, this is body => \&get_body in the above example.
> BTW, it might be even better to have some hook which only _looked_ wether
> some function exists, but neither loads it nor executes it. _I_ definitely
> would have uses for this kind of hook.
This is exactly proto => \&get_proto.
Ilya
- References to:
-
Marc Lehmann <marc@gimp.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]