[parenscript-devel] Multiple value calls

Vladimir Sedach vsedach at gmail.com
Sun Nov 1 17:34:26 UTC 2009


> Maybe this limitation can be avoided by having an mv-returning function A
> set a global variable "mvFunctionReturner" equal to the function A and a
> mv-receiver can check that mvFunctionReturner is set according to the
> function it called expecting multiple values.  Does this scheme miss any
> cases?

What about anonymous functions?

I like this idea, and I think it can be made to work. Have you looked
at whether Linj tries to do multiple return values? I suspect someone
somewhere has thought about and possibly solved this problem before.

Vladimir

> Anyway I have thought a little bit about this and I thought I would pass it
> off to the rest of the Parenscripters as a thought experiment.  Assume you
> can do a lot more semantic analysis than Parenscript currently does and
> transform the compiled source however you want.  But any compiled functions
> must still be able to be treated as normal Javascript functions and all and
> only functions that should return multiple values appear to return them.
>
> Cheers,
> Red
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>




More information about the parenscript-devel mailing list