On Mon, Jan 19, 2009 at 02:18:46PM -0800, jn...@jnthn.net via RT wrote:
> On Wed Dec 31 08:44:02 2008, masak wrote:
> > Rakudo r34703:
> > 
> > $ perl6 -e 'my $year; $year //= 2009'
> > get_iter() not implemented in class 'Integer'
> > 
> > This looks like a misparse, interpreting '//= 2009' as '// =2009'.
> > 
> Tried just adding it to generate as a meta-op, then realized that we're
> using pasttype def_or for // so there's no infix://. So I hand-rolled a
> //= for now, but are we really going to get away with using pasttype for
> //? I'm thinking that // will want to be overloadable, so needs to
> become a multi infix:<//>? 

It also needs to short-circuit, which is why we currently use a
pasttype and not a simple multi.

Beyond that, many of the infixes are switching from left
associative to list associative precedence, which means we'll
be revisiting this when the dust settles anyway.

Pm

Reply via email to