Re: rb_load_file crashes when there no bracket is provided



when rb_gv_set("VERBOSE", Qnil)is executed, it works fine. Basically
this will suppress all the warnings. This is equivalent to "ruby -w"

Saravanan Sar wrote:
Phil Meier wrote:
But when i changed the line
i = Category(is('CatB')) to
i = Category is 'CatB' #removing the brackets

Why do you need to remove brackets?

This is basically a set of rules that our client will define. I am
writing DSL so that it will be easy for our client. When i execute the
same using ruby.exe it works but with bracket warning. I think
rb_load_file is crashing because of this warning message.

Please help me

Regards,
Saravanan A


--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: When are unnecessary casts useful?
    ... char* a; ... Note that my version of gcc hasn't warned on line 9; ... parentheses as an instruction to suppress the warning. ... Unfortunately not all compilers take the hint when you just add brackets -- some will continue to warn you. ...
    (comp.lang.c)
  • Re: Compiler error with ifTrue:ifFalse: ?
    ... brackets for optimization. ... Yes you normally get the warning in the transcript but it usually works. ...
    (comp.lang.smalltalk.dolphin)
  • Re: Interesting warning I get
    ... bool foo = false; ... I don't see a comma operator inside my brackets. ... Neither warning nor error when compiled with VS 2003 SP1... ...
    (microsoft.public.vc.language)
  • Re: Interesting warning I get
    ... I don't see a comma operator inside my brackets. ... Neither warning nor error when compiled with VS 2003 SP1... ... C4709 issued with VS2003 SP1, ...
    (microsoft.public.vc.language)