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

_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to