[Feature #3753] value of def-expr

Feature #3753: value of def-expr
http://redmine.ruby-lang.org/issues/show/3753

e$B5/I<<Te(B: Usaku NAKAMURA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

RubyKaigie$B8+$F$F;W$$=P$7$?$N$G$9$,!"e(Bdefe$B<0$Oe(BSymbole$B$rJV$9$h$&$K$7$^$;$s$+e(B?
e$B$=$&$9$k$H!"e(B

class Foo
private def foo()
# …
end
end

e$B$J$I$H=q$1$k$h$&$K$J$j$^$9!#e(B

e$B0J2<%Q%C%A!#e(B
Index: vm.c

— vm.c (e$B%j%S%8%g%se(B 29124)
+++ vm.c (e$B:n6H%3%T!<e(B)
@@ -1893,7 +1893,7 @@ m_core_define_method(VALUE self, VALUE c
REWIND_CFP({
vm_define_method(GET_THREAD(), cbase, SYM2ID(sym), iseqval, 0,
rb_vm_cref());
});

  • return Qnil;
  • return sym;
    }

static VALUE
@@ -1902,7 +1902,7 @@ m_core_define_singleton_method(VALUE sel
REWIND_CFP({
vm_define_method(GET_THREAD(), cbase, SYM2ID(sym), iseqval, 1,
rb_vm_cref());
});

  • return Qnil;
  • return sym;
    }

static VALUE

e$B%A%1%C%He(B #3753 e$B$,99?7$5$l$^$7$?!#e(B (by Kenta M.)

+1

http://redmine.ruby-lang.org/issues/show/3753

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs