ah it's always like that. 10 minutes after sending the email, I got it
working. Still buggy I think, but basic value returning works now in
M1!

Explanations are still welcome though :-)

kjs

On Wed, Jun 13, 2012 at 5:35 PM, kjstol <[email protected]> wrote:
> 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

Reply via email to