[Ironruby-core] BEGIN used in HTree

Shri Borde Shri.Borde at microsoft.com
Mon Feb 9 17:08:25 EST 2009

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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090209/c781961f/attachment.html>

More information about the Ironruby-core mailing list