[Prev][Next][Index][Thread]
Re: d2c string-to-integer problem
-
To: info-dylan@ai.mit.edu
-
Subject: Re: d2c string-to-integer problem
-
From: Bruce Hoult <bruce@hoult.org>
-
Date: Tue, 18 Dec 2001 04:15:02 -0500 (EST)
-
Organization: TelstraSaturn
-
References: <lambda2000-667BA3.03004918122001@news.bellatlantic.net>
-
User-Agent: MT-NewsWatcher/3.0 (PPC)
-
Xref: traf.lcs.mit.edu comp.lang.dylan:13841
In article <lambda2000-667BA3.03004918122001@news.bellatlantic.net>,
Brian Campbell <lambda2000@yahoo.com> wrote:
> I'm trying to compile a simple program that reads in a number. The
> problem is, when I try to convert the string to a number, I get this
> error. Can anyone help?
>
> [lambda@localhost:string-test]% ./string-test
> Expected an instance of {the class <function>}, but got 1
> zsh: abort ./string-test
>
> Here's my code, stripped down to just the part that causes the error:
>
> module: string-test
> synopsis:
> author:
> copyright:
>
> define function main(name, arguments)
> let num = string-to-integer("4");
> exit-application(0);
> end function main;
>
> // Invoke our main() function.
> main(application-name(), application-arguments());
That works fine here.
d2c 2.3.6pre3 (build from cvs a few days ago) on SuSE 7.1 x86 Linux.
-- Bruce