Large integers, ** and Int

Moritz Lenz moritz at faui2k3.org
Tue Aug 17 15:51:40 UTC 2010


Aaron Sherman wrote:
> I did eventually discover that I needed to do this. The problem then
> became that I can't reliably get exporting an infix:<+> operator from a
> module to work. 

When you try, make sure to declare it as 'our', since Rakudo doesn't
fully handle lexical exports yet.

# probably also needs type constraints
our multi sub infix:<+>($a, $b) is export {
    # your code here
}

Cheers,
Moritz


More information about the parrot-dev mailing list