From: Eric Wong Date: 2017-06-30T00:02:47+00:00 Subject: [ruby-core:81839] Re: [Ruby trunk Feature#13434] better method definition in C API Eric Wong 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: