From: why the lucky stiff Date: 2006-07-21T03:27:22+09:00 Subject: Re: [ANN] sandbox 0.0.11 -- taking the i out of eval On Fri, Jul 21, 2006 at 12:51:12AM +0900, Joshua Haberman wrote: > I don't want to diss your work, since it is obviously a significant > accomplishment. But aren't these problems symptoms of the fact that the > approach (swapping out global variables) is sort of a hack? Wouldn't > all these problems disappear if you did this the "right" way, by making > these globals into members of a structure that get passed to every > function (eg. make the parser re-entrant)? You are welcome to diss it, I would encourage it and I hope to (fingers crossed) one day be publicly, formally defamed. I feel just like you, though. I hope this hack will go away one day. That day will break all the C extensions, but, as you say: mere mortals, right? For the rest of my head-nodding, see struct sandkit in ext/sand_table/sand_table.c. _why