If I define a sub as:
.sub print
.param string arg
print arg
.end
Then I cannot invoke it using the IMCC "short way":
print("hello")
because I get this error:
error:imcc:op not found 'print' (print<0>)
But I have to invoke it like this:
find_global $P0, "print"
$P0("hello")
--
Dave Brondsema : da...@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
http://csx.calvin.edu : student org
You can invoke it the "almost short way":
"print"("hello")
You can also define the sub like this:
.sub "print"
.param string arg
print arg
.end
Which is quite nice for compiler writers.
Luke
That looks really great, but when I try it in 0.1.1 (on Windows), I get:
error:imcc:parse error, unexpected '(', expecting '\n'
>> "print"("hello")
>
> That looks really great, but when I try it in 0.1.1 (on Windows), I get:
>
> error:imcc:parse error, unexpected '(', expecting '\n'
You'd need latest from CVS, sorry.
leo