From: Thomas Hafner Date: 2008-05-01T16:30:04+09:00 Subject: limiting the scope of a variable Hello, with a function like that def let(*a) yield(*a) end the scope of variables can be limited, e.g. like this: let { x = "foo" # ... do something with x ... # here's the end of scope of x } # ... let { x = "bar" # this is another, different x # ... do something with x ... } Is there already a standard means working like this? If it's a standard library function, what's its name? Regards Thomas