Forum: IronRuby BEGIN used in HTree

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
http://www.ironruby.net/About/Roadmap. I don't see it though. Will add
it.

Thanks,
Shri
This topic is locked and can not be replied to.