in reply to Re: Lexical::Alias & subroutines
in thread Lexical::Alias & subroutines

Thanks for the info :-)

I should invest some time in learning about source filters and later try to create a filter on top of your module that would allow me to write this as much as I'd like it as possible :-)

P.S.: It'd be cool if you found a way to bypass the error in Perl, but I'm afraid I can't help you in this. My C skills are minimal.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

Replies are listed 'Best First'.
Re: Re: Re: Lexical::Alias & subroutines
by japhy (Canon) on May 19, 2003 at 15:07 UTC
    Lexical::Alias 0.04 will be coming to CPAN shortly. Two tiny changes -- a $SWAP global you can set to 1 if you want to send the arguments to the functions in the reversed order you specified, and a note about the 5.8.0 bug.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

      I don't think the $SWAP global is the right implementation. It's too global :-)

      What about having

      alias $original => $alias;
      and
      Alias $alias => $original;
      or something like this. Or at least the SWAPing should be on package level. IHMO of course.

      Thanks, Jenda
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
         -- Rick Osborne

      Edit by castaway: Closed small tag in signature

        That's what local is for, no?

        Makeshifts last the longest.