On 7/17/06, Ola Bini <[EMAIL PROTECTED]> wrote:
Just a quickie answer to your last point. I believe (without any great
data for it right now) that to support real closures with the
"single-array-model" we would have to jump through some _really_ strange
hoops to get it working, or actually copy the references used to another
place (and keep this updated for all closures in the same scope, etc).
This is the reason in lisp (scheme) we can do this:

I think the single-array-per-call would work just fine...but we have some other considerations too like handling argument lists, passed blocks and block args, and ensuring constant lookup time for blocks-within-blocks-within-methods. At any rate, smack me around if I start to fall into pre-optimization mode. One array per call probably isn't gonna kill us.
--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ www.jruby.org
Application Architect @ www.ventera.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to