|
Re: Lack of software abstractions: msg#00220lang.j.general
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' |value error: y_0_ | (; <@(>,'=:',5!:5,(13 10{a.)"_)"0 allnames)1!:2<'activews' Paul Gauthier APL Software Developer - Senior pgauthier-oQFXY4Vn4Wdl57MIdRCFDg@xxxxxxxxxxxxxxxx Phone: 312-739-3467 Fax: 312-739-3496 CheckFree. The Company that Powers Payment on the WebSM. http://www.checkfree.com/paybillsonline Roger Hui <rhui000-fVOoFLC7IWo@xxxxxxxxxxxxxxxx> Sent by: general-bounces-eCoxsOKuxbJl57MIdRCFDg@xxxxxxxxxxxxxxxx 01/26/2007 02:46 PM Please respond to General forum <general-eCoxsOKuxbJl57MIdRCFDg@xxxxxxxxxxxxxxxx> To General forum <general-eCoxsOKuxbJl57MIdRCFDg@xxxxxxxxxxxxxxxx> cc 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 <JTibollo-3+VwCW+EVOqLZvtRG1ECog@xxxxxxxxxxxxxxxx> 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: general-bounces-eCoxsOKuxbJl57MIdRCFDg@xxxxxxxxxxxxxxxx > [mailto:general-bounces-eCoxsOKuxbJl57MIdRCFDg@xxxxxxxxxxxxxxxx] 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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Lack of software abstractions: 00220, Roger Hui |
|---|---|
| Next by Date: | RE: Lack of software abstractions: 00220, Dan Bron |
| Previous by Thread: | Re: Lack of software abstractionsi: 00220, Roger Hui |
| Next by Thread: | Re: Lack of software abstractions: 00220, Dan Bron |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |