> reliable, predictable behavior of empties

So what should be the result of the following and why?
   > (3 0$0 );(0 4$'')
   > (4 0$'');(3 0$0 )



----- Original Message -----
From: Henry Rich <[EMAIL PROTECTED]>
Date: Monday, October 15, 2007 5:31
Subject: RE: [Jprogramming] inverted table ifa
To: 'Programming forum' <[email protected]>

> The proper response to a question like that is "what business
> is it of yours?".  Maybe he's passing the column to some 
> verb that
> he got from somebody else.  He just wants reliable, predictable
> behavior of empties.  There shouldn't have to be any discussion
> of motive.
> 
> But in case he didn't get the verb from somebody else:
> 
> {.!.0
> 
> works to coerce an empty to numeric type.
> 
> Henry Rich
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Roger Hui
> > Sent: Monday, October 15, 2007 8:05 AM
> > To: Programming forum
> > Subject: Re: [Jprogramming] inverted table ifa
> > 
> > Why would you be doing overtake on a column of an inverted table?
> > 
> > 
> > 
> > ----- Original Message -----
> > From: bill lam <[EMAIL PROTECTED]>
> > Date: Sunday, October 14, 2007 23:05
> > Subject: Re: [Jprogramming] inverted table ifa
> > To: Programming forum <[email protected]>
> > 
> > > fill element.
> > >     6{.("1) 1{:: ifa 3 2$ 'ab';''
> > > 0 0 0 0 0 0
> > > 0 0 0 0 0 0
> > > 0 0 0 0 0 0
> > > 
> > > Roger Hui wrote:
> > > > Why does it matter what the internal type of an empty 
> array is?
> > > > 
> > > > 
> > > > 
> > > > ----- Original Message -----
> > > > From: bill lam <[EMAIL PROTECTED]>
> > > > Date: Sunday, October 14, 2007 19:59
> > > > Subject: [Jprogramming] inverted table ifa
> > > > To: Programming forum <[email protected]>
> > > > 
> > > >>        ifa
> > > >> <@(>"1)@|:
> > > >>
> > > >>        3!:0&> 
> ifa  3 
> > > 2$ 'ab';''
> > > >> 2 1
> > > >>
> > > >> the literal empty was changed into boolean empty. why 
> this 
> > > >> happen and how to 
> > > >> prevent it?
> > > >>
> > > >> (tested on both j601 and j602)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to