IronRuby does not currently support BEGIN/END. HTree uses BEGIN like this to
syntax check if code_to_syntax_check contains valid Ruby code.
eval("BEGIN { return true }\n#{code_to_syntax_check}")
Is there any difference to just using this?
eval("return true\n#{code_to_syntax_check}")
I thought we had added BEGIN/END to http://www.ironruby.net/About/Roadmap. I
don''t see it though. Will add it.
Thanks,
Shri
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20090209/c781961f/attachment.html>