Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: Sys.argv with interpreter and compiler
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-07-02 (00:07)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: Sys.argv with interpreter and compiler
>From: Markus Mottl <>

>I just wondered, whether it is intentional behaviour that the array
>of command line arguments ("Sys.argv") is treated exactly the same way
>under the interpreter and within executables.

Do you mean native-compiled executables versus byte-code, or compiled
programs versus the toplevel system ?

If the former, it's a bug.  If the latter, the toplevel was not really
designed for this use, and you can use Sys.interactive to tell which
case you are in.

-- Damien