| Class | Node::DASGN |
| In: |
ext/nodeinfo.c
|
| Parent: | Node |
Represents dynamic local variable assignment. Dynamic assignment differs from static assignment in that the slots for static local variables are allocated when the method is called, wereas slots for dynamic variables are allocated when the variable is first assigned to. When searching for the variable, dynamic assignment searches backward up the stack to see if the variable exists in any previous block in the current frame; if it does, it assigns to the slot found in that block, otherwise it creates a new variable slot. As a result, dynamic assignment is typically much slower than static assignment.