www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

DMDScript - How to return 'status code' to OS ?

Greetings,

I'd like to return a 'status code' [e.g. the integer value 5] to the
operating system from a DMDScript script much in the manner as it would be
done from a C [or D ?] program using the 'exit' function.

I am able to accomplish this task via the Windows Scripting Host using the
following code:

    WScript.Quit(5);

I'm not aware of similar functionality to, 'WScript.Quit', in DMDScript.

So my questions are:

* Is there such functionality natively available in
   DMDScript ?

* If not, is it possible to perhaps 'hook into' a D function
   with this functionality *without* having to modify the
   DMDScript source code, and recompile the interpreter ?

* If not, are there plans add such functionality to future
   versions of DMDScript ?

I look forward to any response.

Cheers,

Anthony Borla
Oct 30 2005