I thought it would be 3 or 4 lines....

------------------------------------------------------------------------
|\/| Randy A MacDonald   | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED]  |
|\ |                     | The only real problem with APL is that
BSc(Math) UNBF'83        | it is "still ahead of its time."
Sapere Aude              |     - Morten Kromberg
Natural Born APL'er      | Demo website: http://156.34.66.254/
-----------------------------------------------------(INTP)----{ gnat }-

----- Original Message ----- 
From: "Roger Hui" <[EMAIL PROTECTED]>
To: "General forum" <[email protected]>
Sent: Friday, January 26, 2007 4:46 PM
Subject: Re: [Jgeneral] Lack of software abstractions


> It has not yet been done because the style of
> working in J is different from the style in APL
> in the old old days.  Also because of the
> "dustbin" phenomenon previously mentioned.
> Anyway the following is how you can do it.
> 
> To save everything, done in 3 lines:
> 
> nl_z_=: 4!:1
> allnames=: ; <@((3 : 'nl__y i.4') ,&.> '_'&,@(,&'_')&.>)"(0) 18!:1 i.2
> (; <@(> , '=:' , 5!:5 , (13 10{a.)"_)"0 allnames) 1!:2 <'activews'
> 
> To get everything back, done in 1 line:
> 
> 0!:0 <'activews'
> 
> 
> 
> ----- Original Message -----
> From: Joe Tibollo <[EMAIL PROTECTED]>
> Date: Friday, January 26, 2007 12:15 pm
> Subject: RE: [Jgeneral] Lack of software abstractions
> 
> > I don't think it is all that trivial. 
> > 
> > Ideally, it would be nice to save everything in the workspace and 
> > reloadit with a simple
> > ")save"  and  ")load" .  Having to write a function to query all 
> > localesand package all objects to a single file is a serious 
> > undertaking -
> > perhaps that is why it still has yet to be done...
> > 
> > /Joe 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of ramacd
> > Sent: Friday, January 26, 2007 2:37 PM
> > To: General forum
> > Subject: Re: [Jgeneral] Lack of software abstractions
> > 
> > A function that retrieves an APL object from a file if necessary, 
> > allowsediting of an that object, and stores it back to that file 
> > if changes
> > have
> > been made also saves a lot of time. I've used such a utility in APL
> > since
> > '86. Having a way to store J objects, verbs more precisely, would make
> > this
> > a trivial addition to J.
> ----------------------------------------------------------------------
> 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