Browse thread
Re: Sys.argv with interpreter and compiler
- Damien Doligez
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Damien Doligez <Damien.Doligez@i...> |
| Subject: | Re: Sys.argv with interpreter and compiler |
>From: Markus Mottl <mottl@miss.wu-wien.ac.at>
>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