>>>>> "F" == Florian Gross <flgr / ccan.de> writes: F> And that's because the define_method-block has its own version of F> $SAFE which is still 0? Yes, define_method store the block in a Proc object which preserve the value of $SAFE. When the proc is called, it restore the value of $SAFE to its original value. -- Guy Decoux