Re: proposal: binding with a function

2005-06-23 Thread Piers Cawley
Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] writes: As I've said before, Perl supports `alias`--it's just spelled `:=`. Here's a rubyish idiom: my old_behaviour := function; function := sub { try_some_stuff || old_behaviour } Except, with binding it doesn't work like that, you end up with

Re: proposal: binding with a function

2005-06-23 Thread Juerd
Piers Cawley skribis 2005-06-23 15:30 (+0100): Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] writes: As I've said before, Perl supports `alias`--it's just spelled `:=`. Here's a rubyish idiom: my old_behaviour := function; function := sub { try_some_stuff || old_behaviour } Except, with

Re: proposal: binding with a function

2005-06-23 Thread Ingo Blechschmidt
Hi, Juerd juerd at convolution.nl writes: Piers Cawley skribis 2005-06-23 15:30 (+0100): Brent 'Dax' Royal-Gordon brentdax at gmail.com writes: As I've said before, Perl supports `alias`--it's just spelled `:=`. Here's a rubyish idiom: my old_behaviour := function;

Re: AUTLOAD and $_

2005-06-23 Thread Piers Cawley
Luke Palmer [EMAIL PROTECTED] writes: On 6/20/05, chromatic [EMAIL PROTECTED] wrote: On Mon, 2005-06-20 at 12:11 +0200, Juerd wrote: I think there exists an even simpler way to avoid any mess involved. Instead of letting AUTOLOAD receive and pass on arguments, and instead of letting

This week's summary

2005-06-23 Thread The Perl 6 Summarizer
The Perl 6 summary for the fortnight ending 2005-06-21 Surprise! It's me again. You may be wondering what happened to last week's summary (I know I was) and where Matt had gone. Well, I'm not entirely sure where exactly he is now, but last week was moving week for him. Those

This week's summary, correctly formatted

2005-06-23 Thread The Perl 6 Summarizer
The Perl 6 summary for the fortnight ending 2005-06-21 Surprise! It's me again. You may be wondering what happened to last week's summary (I know I was) and where Matt had gone. Well, I'm not entirely sure where exactly he is now, but last week was moving week for him. Those

Re: proposal: binding with a function

2005-06-23 Thread Damian Conway
Piers Cawley wrote: Here's a rubyish idiom: my old_behaviour := function; function := sub { try_some_stuff || old_behaviour } Except, with binding it doesn't work like that, you end up with an infinite loop. But this version *should* work correctly: # Bind the name