Re: Sys.argv with interpreter and compiler

From: Damien Doligez (Damien.Doligez@inria.fr)
Date: Thu Jul 08 1999 - 13:39:02 MET DST


Date: Thu, 8 Jul 1999 13:39:02 +0200
From: Damien Doligez <Damien.Doligez@inria.fr>
Message-Id: <199907081139.NAA19734@tobago.inria.fr>
To: caml-list@inria.fr
Subject: Re: Sys.argv with interpreter and compiler

>From: Jacques GARRIGUE <garrigue@kurims.kyoto-u.ac.jp>

>Particularly, since there is no way to change the contents of
>Sys.argv, this means that you cannot easily use the Arg module in a
>caml script. Silly.

Sys.argv is an array, so it is mutable like all other arrays and you
can change its contents. What's harder to do is to change its length,
although you could do it with Obj.truncate (not recommended in
general, except for people who know what they're doing, as usual with
Obj).

-- Damien



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:23 MET