On a closely related note, how long do you think it'll be before someone puts this on CP6AN?
class n { method n() is classmethod { # Or whatever it turns out to be return new n; }
multi *infix:== (Object $lhs, n $rhs) { return ?$lhs; } }
Allowing you to have code like:
system("rm foo.txt") == n.n or die "Can't rm foo.txt";
(I could think of a couple dozen offshoots of that class, actually, which is really rather scary. Definitely been chatting with too many anime fans...)
-- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker
Oceania has always been at war with Eastasia.