BEGIN used in HTree


#1

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