Re: Can foo(123) dispatch to foo(Int) (was: Mutil Method Questions)

2006-06-24 Thread Paul Hodges
so back to foo(bar). What's the default behavior? String doesn't Num, does it? though is does convert if the value is good Does that mean foo(123) should or should not dispatch to foo(Int)? Or even foo(Num), for that matter Oy, I could see some headaches around setting these rules in

Re: lexical lookup and OUTER::

2006-06-24 Thread Audrey Tang
在 2006/6/24 上午 8:41 時,Patrick R. Michaud 寫到: because later in the scope $x may be declared, so it's safer to just put OUTER right there. I don't think $x can be declared later in the scope. According to S04, If you've referred to $x prior to the first declaration, and the

Re: lexical lookup and OUTER::

2006-06-24 Thread Patrick R. Michaud
On Sat, Jun 24, 2006 at 04:52:26PM -0700, Audrey Tang wrote: $x = 1 if my $x; The compiler is allowed to complain, but does that means it's also okay to not die fatally, and recover by pretending as if the user has said this? # Current Pugs behaviour $OUTER::x = 1 if my