[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02650] [1.5] eval / module_eval

From: ts <decoux@...>
Date: 2000-05-09 08:12:14 UTC
List: ruby-talk #2650
 I'm still trying to understand the security mechanism of ruby.

 Why there is a difference between eval and module_eval ?

 Apparently eval is protected with (from rb_f_eval) :

    if (ruby_safe_level >= 4) {
	Check_Type(src, T_STRING);
    }
    else {
	Check_SafeStr(src);
    }

 and module_eval with (from eval_under) :

    Check_SafeStr(src);


Guy Decoux


In This Thread

Prev Next