Reputation: 1444
simple multiplication is failling in my script-fu. the folowing code
(print "hello") (print (/ 4 3)) (print (* 3 4)) (print "world")
Gives :
"hello" 1,333333333.0 Error: ( : 1) not enough arguments
Any idea ?
Thanks
Upvotes: 0
Views: 339
Reputation: 419
I ran into a similar problem when trying to add new functionality to someone else's script. I wanted to provide my solution in case anyone else runs into a similar issue.
In this case, there was a '(let* (...))' statement that was being used to initialize some variables. The original author of the script wrote '(let * (...))' - with a space between let and star - which means every vector in the 'let' statement becomes the expected arguments for the '*' statement.
More info: http://docs.racket-lang.org/reference/let.html
Please excuse (and correct if necessary) any incorrect nomenclature regarding Scheme. I have barely just been exposed to it.
Upvotes: 1