[Prev][Next][Index][Thread]

Re: d2c string-to-integer error



"Peter S. Housel" <housel@acm.org> wrote in message news:<01e601c188dd$948b6d80$7421010a@nb.mindspeed.com>...
> 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:
> >
> > [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
> >
> > 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());
> 
> Your program works fine on the current d2c from CVS.  What version are you
> using?
> 
> I re-wrote string-to-integer on September 25, so versions after that should
> be fine.
> 
> Cheers,
> -Peter S. Housel-   housel@acm.org   http://members.home.com/housel/


Ah. I'm using 2.3.5 on MacOS X, which was released back in May. I
suppose I should check out the latest from CVS.



References: