AFAIU it is possible for a win32 gui program written in plain C to return an
integer code because the protocol of winmain is
int winmain (...)
so that at least for win32 j.exe, code from 2!:55 can be returned if it is
written so.
however I don't think this is a mandatory feature for most framework based
program.
Björn Helgason wrote:
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
------------------------------------------------------------------------
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm