Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Thu, 20 May 2004 11:40:38 -0400
Local: Thurs, May 20 2004 11:40 am
Subject: Non-flow-control logical tests
Okay, let me preface this by saying it is, in large part, directly
because of my current work project, so it feels a bit self-serving. (One of the reasons I haven't just put them in) But... Right now the only good way to find out if a value is true or not is $I0 = 1 and look in $I0 for the result. This is OK, but if you're dealing if ((foo or bar) and ((x1 >= 12) or (x2 < 15) or (x5 and x6 and (And yes, that's close to a real code snippet. Feel my pain here :) Anyway, because of it I'm pondering non-flowcontrol logical ops. That istrue I0, P5 # I0 = 1 if P5 is true The or/and/xor/not ops don't really need alternate versions, since: isor I0, P5, P6 can be done with or P4, P5, P6 so there doesn't seem to be much pressure there. Given the semi-self-serving nature of these I think some discussion's --------------------------------------"it's like this"------------------- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||