Arc Forumnew | comments | leaders | submitlogin
6 points by almkglor 5909 days ago | link | parent

kennytilton built something like this once: http://smuglispweeny.blogspot.com/2008/02/faux-dynamic-bindi...

The elegant way to do this is to hack together a macro for it^^



4 points by kennytilton 5909 days ago | link

I thought about suggesting special variables when pg asked for suggestions, but I plan on sticking with CL so I thought it inappropriate to... open my big yap? :)

-----

1 point by jazzdev 5885 days ago | link

Hiding the ugliness in a macro is great idea.

But the solution isn't scalable in a multi-threaded program. 50 threads that want to call w/stdx would have to be serialized. And only because they share a temporary variable has to be global.

mzscheme solves this with thread-local variables.

-----