logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Trying to make a new operator: msg#00063

Subject: Re: Trying to make a new operator
> What am I doing wrong?
Sounds like you need to define (or at least declare) the new operator
before you use it. Perl 6, like Perl 5 compiles with a single pass, so
when you are using your random operator, it hasn't yet read the
declaration further down the file.

It does its best to DTRT with most functions, but when you're defining
arbitrarily random operators, it can only be so clever.

-- 
Sufficiently advanced humour is indistinguishable from tedium.
corollary:
Humour distinguishable from tedium is insufficiently advanced.
http://surreal.istic.org/           Hack code until it works, then stop.

Attachment: pgpdwTGtZXpOt.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>