It started out as a question on foreign. jconsole returns return code from 2!:55 y
No problem I was thinking that it might be an idea to extend 2!:55 y to also give optional text as well That may not be such a good idea. Then thinking about the exit verb it could be extended to allow for text and/or log file. Alternatively have a system verb to write, append, codes, text, to log file with a default log file. I do this all the time so it is not really specifically for me alone. I thought it could be a good idea to have such a system verb to do this. Not so long ago smoutput and such things as well as prompt, wdstatus were not available in the system and we had to roll our own for each project. 2007/4/12, Dan Bron <[EMAIL PROTECTED]>:
Gosi wrote: > I am proposing that J has an exit function not just jconsole By "J" you mean j.exe or jwdp? Those are GUI apps, and return codes are used in (automated, non-interactive, non-GUI) batch applications. So I don't believe there's a convention (in Windows, at least) for GUI apps to populate ERRORLEVEL. > Also that the exit function be extended to give optional text and/or > logfile If the logfile wasn't given, where would the text be written? GUI applications don't have a stdout (like ERRORLEVEL, that's in the domain of console applications). >write, append, codes, texts, logfile name, default log file/stdout All these parameters and options seem too complicated for a foreign. Especially when this is so easily written and customized to taste in user code. If you have this function already, why do you want a foreign to do it for you? If you're worried that the function isn't standard and you can't depend on its presence outside of your environment, perhaps you could submit it to Chris Burke as a candidate for inclusion in the standard library. -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127 801 Grímsnes ,t-póst: [EMAIL PROTECTED] Skype: gosiminn, gsm: +3546985532 Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
