HaloO,
Luke wrote:
> Isn't the point of lexical scoping so that you don't have to worry
> whether somebody else called something the same thing you did? I can
> picture this:
>
>multi combine (Any $x, Any $y) { ZCombinator.new($x, $y) }
>multi combine (@x, @y) { ZList.new([ @x, @
On 9/4/05, Yuval Kogman <[EMAIL PROTECTED]> wrote:
> I always saw scoping of multis as something that applies to the
> variants...
>
> multi sub foo {
>
> }
>
> {
> my multi sub foo {
>
> }
>
>
On Sun, Sep 04, 2005 at 07:55:21 +, Luke Palmer wrote:
> Here's a good Perl 6 final exam question:
>
> Spot the mistake (hint: it's not in the math):
>
> module Complex;
>
> sub i() is export {
> Complex.new(0,1)
> }
> multi sub infix:<+> (Complex $left, Complex $rig
Here's a good Perl 6 final exam question:
Spot the mistake (hint: it's not in the math):
module Complex;
sub i() is export {
Complex.new(0,1)
}
multi sub infix:<+> (Complex $left, Complex $right) is export {
Complex.new($left.real + $right.real, $left.imag + $rig