From: gabriele renzi Date: 2005-08-01T05:46:06+09:00 Subject: Re: Yet Another useless Ruby 2 Idea Trans ha scritto: >>def foo >> def bar >> # bar gets defined as if it was declared >> # out of foo, quite useless >> end >>end > > > Better if #bar is local to the scope of foo. yes, but that would mean changing the semantic of def..end, from "define a method for instances of self" to "define a method in a pseudo obkect only available here".