[gambit-list] macros sharing variables?

Denis Fourt denis.prog at hotmail.com
Fri May 9 12:49:20 EDT 2014


Hello,
My first goal is to get in gambit something similar to the make, chain, link yoke instructions in PicoLisp. This has nothing to do with makefiles, it is about building lists. See : 
http://software-lab.de/doc/refM.html#makehttp://picolisp.com/5000/!wiki?home
I have found this of interest because it often makes the code shorter and cleaner.
So the basic idea would be to write macros that would shamelessly use the same captured variables, with all the associated troubles.
I have been thinking of writing something like (define macro-var (gensym)), but I am afraid of some troubles if the files is included more than once. 
I believe (as this is actually programming with coroutines), it could be done with two threads and parameters : one thread would run the code and the chain, link function would send lists or elements to the other thread that would concatenate all them at the end.
What are you thinking about all this?
Thanks,
Denis  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20140509/f9107688/attachment.htm>


More information about the Gambit-list mailing list