Re: Primitive Boolean type?

2002-11-03 Thread Michael Lazzaro
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

Re: labeled if blocks

2002-11-03 Thread Bryan C. Warnock
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)

Re: Flexops as information preserving Bitops

2002-11-03 Thread Piers Cawley
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 );

Re: Primitive Boolean type?

2002-11-03 Thread Smylers
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,

Unifying invocant and topic naming syntax

2002-11-03 Thread Me
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