# $Id: argscat.rb,v 1.2 2003/12/30 06:11:01 yuya Exp $ def foo(a, b, c) p(a, b, c) end foo(1, *[2, 3]) # NodeDump V0.1.7 # # NODE_BLOCK: # NODE_NEWLINE: [argscat.rb:3] # NODE_DEFN: method 8961 (foo) # NODE_SCOPE: # NODE_BLOCK: # NODE_ARGS: count = 3 # additional default values: # NODE_NEWLINE: [argscat.rb:4] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 3 # NODE_LVAR: LV 2 (a) # NODE_LVAR: LV 3 (b) # NODE_LVAR: LV 4 (c) # NODE_NEWLINE: [argscat.rb:7] # NODE_FCALL: to function: 8961 (foo) # Parameters: # NODE_ARGSCAT: # Push onto: # NODE_ARRAY: size = 1 # NODE_LIT: Fixnum: 1 # Values: # NODE_ARRAY: size = 2 # NODE_LIT: Fixnum: 2 # NODE_LIT: Fixnum: 3