From: Nobuyoshi Nakada Date: 2015-03-12T22:00:23+09:00 Subject: [ruby-core:68508] Re: Seven stacks (and two questions) On 2015/03/12 19:15, Jakub Trzebiatowski wrote: > The Ruby Hacking Guide says that Ruby has��� seven stacks. Is it an > implementation choice (and it could be implemented with one stack), > or is there really a need for seven logical stacks? For example, Lua > has one stack, and still closures with upvalues are totally possible > (it���s like Ruby���s blocks that can reference local variables of > their enclosing method, but it works for any function with any > upvalues). RHG is a good book, but quite old for the core implementation. > 2. When does Ruby generate `getdynamic` YARV opcode? Could you > provide me with an example source code? (I really tried to make Ruby > generate it. No results.) No such instruction in YARV. Do you mean `getlocal`? -- Nobu Nakada