I'd like to read the logic code of =
, but can't find it.
UPDATE:
I found the test_multi
method text/ruby/test_assignment.rb. It's Ruby code, but seems will let me to the destination.
The reason I want to check the code is find how it handles multi-assignment. Like a,b,c = [1,2,3]
.
UPDATE:
I found keywords "MASGN" and led me to
compile_massign(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE *node, int poped)
in compile.c
http://github.com/ruby/ruby/commit/e39eb9dab50eaa681467e51145b37cdc11667830#diff-2