[gambit-list] Returning values from ##inline-host-code
Alexander Shendi
Alexander.Shendi at web.de
Tue Oct 1 21:08:19 EDT 2013
Hi ,
I need to return values Form an "##inline-host-code" Form. Can I do this at all? See my attempt below. This is for node.JS. Many thanks in advance for your help.
Alexander
Alexander Shendi <Alexander.Shendi at web.de> schrieb:
>Dear list,
>
>how do I return values from a "##inline-host-code" form?
>
>Here is my attempt, but it doesn't seem to work ...
>
>(define (command-line)
> (vector->list
> (##inline-host-code "var vect = new Gambit_vector();
> for(i=0; i < process.argv.length; i++) {
> vect.a[i] = process.argv[i];
> }
> Gambit_r1 = vect;
> ")))
>
>Many thanks in advance,
>
>Alexander
>
>
>
>
>_______________________________________________
>Gambit-list mailing list
>Gambit-list at iro.umontreal.ca
>https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
More information about the Gambit-list
mailing list