[gambit-list] Returning values from ##inline-host-code

Alexander Shendi Alexander.Shendi at web.de
Mon Sep 30 14:24:56 EDT 2013


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







More information about the Gambit-list mailing list