3 Mar
2012
3 Mar
'12
18:49
Hi
1) Rewrite invocation to form (apply target-proc (list arg0 arg1 etc. (string->keyword "key-arg-1") val-1)
Nice, this works for procedures like compile-file.
2) Make a wrapper that's implemented and loaded outside of the syntax-case lib - (invoke-procedure compile-file '((arg0-v arg2-v) (key-arg-1 . val-1))
This works for sure, but means that you have to isolate procedures in a module and compile. This sounds like a dirty solution soon leading to issues. I wonder why Gambit doesn't include a syntax-rules implementation that is compatible with DSSSL and cond-expand, it belongs to R5RS. Thanks Mikael!