in reply to Re: An infix fix
in thread An infix fix
And, they will be in Perl6.
And they will have the much better name of Junctions. See Synopsis 9 and 3 for more info. They also currently work in Pugs as well:
NOTE: The undef() in the first 'if' currently needs to be there or it confuses the parser, this is a Pugs-Bug though, so it will be fixed eventually.#!/usr/bin/pugs use v6; if ( undef() & 2 & 0 & 'x' ) { print "They're all true!\n"; } else { print "At least one is false!\n"; } if ( undef | 2 | 0 | 'x' ) { print "At least one is truee!\n"; } else { print "They're all false!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: An infix fix
by MidLifeXis (Monsignor) on Mar 22, 2005 at 18:29 UTC | |
by stvn (Monsignor) on Mar 22, 2005 at 20:21 UTC |