[gambit-list] port setting arguments with syntax-case enabled

Mikael mikael.rcv at gmail.com
Sun Dec 7 13:45:19 EST 2014


Might be that it doesn't do keyword objects, string->keyword?

2014-12-07 13:10 GMT+02:00 Chris Vine <chris at cvine.freeserve.co.uk>:

> The following works fine without the syntax-rules/syntax-case macro
> expander enabled:
>
>   (open-vector-pipe (list direction: 'input)
>                     (list direction: 'output))
>
> However if the syntax-case expander is enabled, compilation generates
> a warning that 'direction:' is undefined and runtime fails with:
>
>   *** ERROR -- (Argument 1) VECTOR or port settings expected
>   (open-vector-pipe '(#!unbound input) '(#!unbound output))
>
> This also works without the syntax-case expander:
>
>   (open-vector-pipe (list 'direction: 'input)
>                     (list 'direction: 'output))
>
> but fails with the syntax-case expander enabled with a different error:
>
>   *** ERROR -- (Argument 1) VECTOR or port settings expected
>   (open-vector-pipe '(|direction:| input) '(|direction:| output))
>
> I am using gambit-c 4.7.3.  Is there any workaround for this?
>
> Chris
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20141207/8dfae43f/attachment.htm>


More information about the Gambit-list mailing list