Raul; 

you are right of course, but it appears rather counter productive to have to
specifically 'exclude' names from a routine. It is also rather interesting
that when looking at the "names '' " list neither x or y appear even in the
context that you are suggesting..

All in all, probably better to just bite the bullet and accept the
inevitable.

Thanks anyway ..

David

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Miller, Raul D
Sent: Tuesday, April 11, 2006 9:40 AM
To: Beta forum
Subject: RE: [Jbeta] x and y variables


David Vincent-Jones wrote:
> I now understand that the use of 'x' and 'y' as assigned variables
> is totally removed from J601 ...
> 
> domain error: ToTM
> |   y    =:arctan(tand 40.5)%(cosd(_75-_73.5))

No, it's not.

This works:
   erase<'y'
   y=: arctan(tand 40.5)%(cosd(_75-_73.5))

If you like, you could define:
   freey=: ". bind 'y=:y' ::(erase bind (<'y'))
   freex=: ". bind 'x=:x' ::(erase bind (<'x'))
   freexy=: (,.'') [ [ freey freex

And then you could put freexy'' in any routine which
needs to give x or y a global value.

-- 
Raul

----------------------------------------------------------------------
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