Re: Closures and CALLER

2005-05-18 Thread TSa (Thomas Sandlaß)
Aaron Sherman wrote: Ok, so log and log10: multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); log10 := log.assuming:base(10); Sorry, I don't want to interfere but two nit-pickings from me: 1) It's log10:() and log:(: Num ?$, Num +$) these days, isn't it? And I'm

Re: Closures and CALLER

2005-05-18 Thread Aaron Sherman
On Wed, 2005-05-18 at 14:57, TSa (Thomas Sandlaß) wrote: Aaron Sherman wrote: Ok, so log and log10: multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); log10 := log.assuming:base(10); Sorry, I don't want to interfere but two nit-pickings from me: 1)

Closures and CALLER

2005-05-17 Thread Aaron Sherman
Is it a bad sign that I'm still on the first section of S29, getting up to speed? Sigh... I'll get there, really. This is another question from my reading this morning. Ok, so log and log10: multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); log10 :=

Re: Closures and CALLER

2005-05-17 Thread Rod Adams
Aaron Sherman wrote: Ok, so log and log10: multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); log10 := log.assuming:base(10); What does log get in this case: for @x { log10(); } Does the curried log10 execute the defaulting for the sub

Re: Closures and CALLER

2005-05-17 Thread Larry Wall
On Tue, May 17, 2005 at 01:01:48PM -0500, Rod Adams wrote: : Aaron Sherman wrote: : : Ok, so log and log10: : : multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); : log10 := log.assuming:base(10); : : What does log get in this case: : : for @x { :