Re: [racket] How to make unit signature macros take prefix into account

2013-08-07 Thread Nick Main
False alarm - but thank you for making me spend time in the Macro Stepper - it was very enlightening ! I am building a gui app that is wired-up/decoupled via messages dispatched through the event-space queue and I am using units to encapsulate the messaging end-points. The problematic code was #

Re: [racket] How to make unit signature macros take prefix into account

2013-08-07 Thread Carl Eastlund
Nick, You can't just go by the immediate expansion. Lots of temporary names are bound by forms like define-values/invoke-unit; it binds an internal alias called msg-chan-subscribe that should be defined as a rename transformer for diagrammsg-chan-subscribe. Can you give a full example the rest o

[racket] How to make unit signature macros take prefix into account

2013-08-07 Thread Nick Main
I have a signature that includes a macro to clean up the use of one of the procs in the signature. Two different units with the same signature are used via define-values/invoke-unit - the second one uses a prefix in the export sig-spec to differentiate it from the first. The macro introduced by th