You can not win.  What can you use to generate
anything in J?  You have to use primitives. If all the primitives take care to 
eradicate minus zero, 
then there would be no way to generate it in J.

Generate your minus_zero.  Now execute

   t=: 1e6 [EMAIL PROTECTED] 0
   i=: ?#t
   (0 i}t) -:!.0 minus_zero i}t
1

The interpreter must already have the code to take 
care of minus_zero in cases where it wanted to.  
I estimate that it would take me less than an hour 
to build a version of J that can eradicate
minus_zero, if I really wanted to.



----- Original Message -----
From: Dan Bron <[EMAIL PROTECTED]>
Date: Monday, April 23, 2007 9:35 am
Subject: Re: RE: [Jgeneral] zero

> DB = me, RH = Roger
> 
> DB>  So, if ever Roger "fixes"  .. any .. primitives which can 
> name 
> DB>  the beast, J will still have a negative zero 
> 
> RH>  This is false.  
> 
> Yeah?
> 
>           floating_zero =: {. 0 2.5
> 
>           %floating_zero
>       _
> 
>           (128{a.) 15!:2 ] 2 ,~ 1 ,~ 39 ,~ 1 { 15!:1 ] 4 ,~ 2 ,~ 
> 0 ,~ 15!:6 {. ;:'floating_zero' 
> 
>           %floating_zero
>       __
> 
> -Dan
> -------------------------------------------------------------------
> ---
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to