Forum: IronRuby BEGIN used in HTree

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Shri B. (Guest)
on 2009-02-10 00:08
(Received via mailing list)
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 I don't see it though. Will add

This topic is locked and can not be replied to.