hi there,
I'm trying to return values from a called subroutine to the caller.
Effectively:
int main() {
int i = foo();
print(i); // should print 42
}
int foo() {
return 42;
}
I'm trying to set the value 42 in a register in the parent call frame
(PCF). However, not much luck.
The more I'm trying to understand it, the less I do :-)
Does any of the M0 folks have some insights to this?
(I know that the calling conventions have not been figured out, but
I'm just trying to Get it Work. figuring out details can be done
later, but getting it to work is the first step.)
thanks!
kjs
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev