Can Ceran wrote: > Hi, > I have also some another thing in Ruby that I am not sure about. > What kind of storage binding is used in Ruby, as far as I understand > there are no static variables (i'm not sure again), then Ruby uses both > stack-dynamic and heap-dynamic variables or just stack-dynamic? You can determine storage by the notation: stack ----- x = 1 ... {|x|...} def meth x heap ---- @x = 1 @@x = 1 $x = 1 All ruby vars are statically (lexically) scoped. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407