Eric Wong <normalperson / yhbt.net> wrote:
> 	rb_method_attr_setfl(&attr, 0, RB_CONST|RB_PERSIST|RB_REQUIRED);
> 	rb_method_attr_setfl(&attr, 1, RB_REQUIRED);
> 	rb_def_method(rb_Hash, "[]=", rb_hash_aset, &attr);
> 
> 
> For "exception: (true|false)"
> 
> 	rb_method_attr_setkw_const(&attr, "exception", Qtrue);

I'm investigating implementing something along these lines;
not my area of expertise but I think I can learn something.
Will report back in a few days (hope I do not sidetracked into
something else :x).

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>