[Prev][Next][Index][Thread]
Re: How to pass arguments to Dylan executables from the shell?
-
To: info-dylan@ai.mit.edu
-
Subject: Re: How to pass arguments to Dylan executables from the shell?
-
From: Chris Double <chris@double.co.nz>
-
Date: Mon, 21 Feb 2000 14:30:02 -0500 (EST)
-
Organization: None.
-
References: <88rsne$c37$1@nnrp1.deja.com>
-
Sender: Chris.Double@DOUBLEC
-
User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) Emacs/20.4
-
Xref: traf.lcs.mit.edu comp.lang.dylan:11563
dauclair@hotmail.com writes:
> Um, help?
If this is d2c (Gwydion Dylan) then you need to just have the main
function with something like the following in your .lid file:
entry-point: module-name:%main
Where 'module-name' is the name of the module containing the 'main'
function. You don't need the begin/main/end block.
If it's Functional Developer you get the command line arguments using
application-arguments() from the operating-system module. You don't
need the .lid file entry described above and you do use the
begin/main/end block.
Hope that helps,
Chris.
--
http://www.double.co.nz/dylan