zot / Leisure

Polyglot, document-based computing environment. Leisure is very much in flux, right now; please check the readme, below. For a taste of the new version, click the link below, but be warned that it only works in Chrome.
http://zot.github.io/Leisure/?load=elisp/README.org
Other
114 stars 8 forks source link

Memos should not retain old values for redefined functions #55

Closed zot closed 11 years ago

zot commented 11 years ago

Invalidate memos for functions when they are redefined

var oldFunc;
var value;
return value && global._bubba == oldFunc ? value
  : (oldFunc = global._bubba, value = (...));
zot commented 11 years ago

I don't think this is a problem anymore -- the real problem was that functions were calling other functions using the local scope, so when the user redefined a function, the other callers in the same file still called the old definition