Larry wrote:
$z = 0 but true;
I'm not even particularly upset by this:
my bool $x = $z;# $x == 1
Yep, that's all I mean. I just want things like:
my bool $lit = ($light eq on);
if $lit { ... }
to work such that (1) 'bool' always stores the truth of the
On Mon, 2002-10-28 at 14:41, Larry Wall wrote:
And maybe:
A bitwise operator is just a logic operator scoped to a set of bits.
Hypo-operators. :-)
--
Bryan C. Warnock
bwarnock(gtemail.net|raba.com)
Damian Conway [EMAIL PROTECTED] writes:
Piers Cawley wrote:
So, on the train this morning, I had a moment of Satori. What's wrong
with doing what we think of as bitwise operations using the flexops
and adding a 'bitwise' context? So, a bitwise op becomes:
bitwise ( $a | $b | $c $d );
Michael Lazzaro wrote:
Agreed: the value of comparing a boolean with anything else is not
particularly sensible in *any* language.
It isn't particularly unsensible in PHP.
PHP only has one equality operator. If its operands are of different
types then it casts one operand to match the other,
I read Allison's topicalization piece:
http://www.perl.com/pub/a/2002/10/30/topic.html
I started with a simple thought:
is given($foo)
seems to jar with
given $foo { ... }
One pulls in the topic from outside and
calls it $foo, the other does the reverse --
it pulls in $foo from