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

d2c string-to-integer error



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
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());



Follow-Ups: