On Thu, May 20, 2004 at 06:47:57PM +0100, Jon Shapcott wrote:
> On Thu, May 20, 2004 at 10:18:06AM -0700, Brent 'Dax' Royal-Gordon wrote:
> > Dan Sugalski wrote:
> > > istrue I0, P5# I0 = 1 if P5 is true
> > > isgt I0, P5, P6 # I0 = i if P5 > P6
> >
> > By all means! I've thought
At 11:40 AM -0400 5/20/04, Dan Sugalski wrote:
Anyway, because of it I'm pondering non-flowcontrol logical ops.
That is, something like:
istrue I0, P5# I0 = 1 if P5 is true
isgt I0, P5, P6 # I0 = i if P5 > P6
Okay, it's pretty obvious that these would be useful and people have
> Anyway, because of it I'm pondering
> non-flowcontrol logical ops.
Those would be very nice for us compiler-writers.
It's a bit (heh) late for me to bring this up, now,
but I always thought the flow-control ops should be
prefixed with 'j' or something. Like in most other
assemblies. You have "j
On Thu, May 20, 2004 at 10:18:06AM -0700, Brent 'Dax' Royal-Gordon wrote:
> Dan Sugalski wrote:
> > istrue I0, P5# I0 = 1 if P5 is true
> > isgt I0, P5, P6 # I0 = i if P5 > P6
>
> By all means! I've thought non-branching comparison ops would be a good
> idea for years...
My goo
Dan Sugalski wrote:
istrue I0, P5# I0 = 1 if P5 is true
isgt I0, P5, P6 # I0 = i if P5 > P6
By all means! I've thought non-branching comparison ops would be a good
idea for years...
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been
Dan Sugalski writes:
> Right now the only good way to find out if a value is true or not is
> to do something like:
>
> $I0 = 1
> if $P0, done
> $I0 = 0
> done:
>
> and look in $I0 for the result.
[snip]
> Anyway, because of it I'm pondering non-flowcontrol logical ops. That
> is, somethin
Dan Sugalski wrote:
> Right now the only good way to find out if a value is true or not is
> to do something like:
>
> $I0 = 1
> if $P0, done
> $I0 = 0
> done:
>
> and look in $I0 for the result. This is OK, but if you're dealing
> with a language with relatively primitive views of log
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
to do something like:
$I0 = 1
if