31 Mar 01:28
Extending STklos: how to deal with multible return values?
From: Heinrich Wolf <flowh <at> t-online.de>
Subject: Extending STklos: how to deal with multible return values?
Newsgroups: gmane.lisp.scheme.stklos
Date: 2008-03-30 23:31:45 GMT
Subject: Extending STklos: how to deal with multible return values?
Newsgroups: gmane.lisp.scheme.stklos
Date: 2008-03-30 23:31:45 GMT
I recently implemented SRFI-25--- multidimensional arrays--- as an extension to STklos. (Has passed test suite, will be released under GPL as I find time.) The `share-array' procedure takes as third argument a procedure, which may return more than one value. To implement this I took a good look at Erick's implementation of `call-with-values' and soon arrived at a solution that seems to work--- but: I had to include `vm.h', as my code begins with: vm_thread_t *vm = STk_get_current_vm(); To me it seems an extension of STklos should not access things that are--- I suppose--- STklos internals. Did I miss something? -- -- hw
RSS Feed