From: Nobuyoshi Nakada Date: 2008-11-16T06:23:05+09:00 Subject: [ruby-core:19950] Re: Proposal: Method#get_args Hi, At Sat, 15 Nov 2008 00:14:00 +0900, Paul Brannan wrote in [ruby-core:19937]: > > > > And as 1.9 merges bytecodes of those expressions into the > > > > method body, so I don't think it's possible to discompile. > > > > > > The instructions are in the method body, but are pointed to by the > > > arg_opt_table. Each default value expression can be calculated by > > > decompiling the corresponding instructions in the table. > > > > But the code cut off from the context has no meanings. > > Do you have an example? The code to set default value accesses the local variable, that is it contains the index of the variable. This index has meaning only in that context. -- Nobu Nakada