> 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 mos
> Multimethods are not just overloading as in C++.
To expand upon this point a little, you can use multimethods to do
pattern-matching in the style of ML and similar languages. So, to pinch
an example from the pugs tree (examples/functional/fp.p6)
multi sub length () returns Int { 0
> Also realize that it is not necessarily the duty of Textile (et al) to
> handle that aspect beyond text formatting. A diff or history-revision
> view goes beyond the context of the tool.
I don't think Juerd was talking about tables for the purposes of showing
version diffs, but so you can give p
> Ask Bj�rn Hansen <[EMAIL PROTECTED]> writes:
> > Woah, we are getting really far away from talking about perl6
> > here...
>
> Kind of a usenet law or corollary? "Every discussion about wikis ends
You're being a bit optimistic there, aren't you? The only way you'd end
a my-wiki-is-better-than-y
> (would that be a "pliki"? a "sixwiki"? a "plixi"? erm-)
psiki, where the "p" is silent. Like what you throw when you fancy a
free day off work.
--
Humpty Dumpty sat on the wall, Humpty Dumpty had a great fall,
All the King's horses and all the King's men | http://surreal.istic.org/
> what problems Perl 5 has that Perl 6 fixes
A type system to die for.
I think that is enough of a win on its own that mentioning any of the
other features will only muddy the issue :->
--
"The fact that some geniuses were laughed at does not imply that all who
are laughed at are geniuses. The
Wrt your second problem, if this
> $arg_for = [ ( 0 .. $arg_for ) »*« $arg_for ];
is not rw so is not actually adding the entry to the hash (btw,
shouldn't the >>*<< be >>* as the right-hand operand is a scalar?), then
it is possible that
> > > And then I get an error telling me 'No such method in