1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

insns.def: remove old wrong explanation for get/setconstant

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-07-27 06:28:14 +00:00
parent 4aa952f678
commit ca494df3e0

View file

@ -239,8 +239,7 @@ setclassvariable
} }
/* Get constant variable id. If klass is Qnil, constants /* Get constant variable id. If klass is Qnil, constants
are searched in the current scope. If klass is Qfalse, constants are searched in the current scope. Otherwise, get constant under klass
are searched as top level constants. Otherwise, get constant under klass
class or module. class or module.
*/ */
DEFINE_INSN DEFINE_INSN
@ -252,10 +251,7 @@ getconstant
val = vm_get_ev_const(ec, klass, id, 0); val = vm_get_ev_const(ec, klass, id, 0);
} }
/* Set constant variable id. If klass is Qfalse, constant /* Set constant variable id under cbase class or module.
is able to access in this scope. if klass is Qnil, set
top level constant. otherwise, set constant under klass
class or module.
*/ */
DEFINE_INSN DEFINE_INSN
setconstant setconstant