=begin Diogo Lisboa wrote: > On Wed, Nov 26, 2008 at 4:32 PM, Francoys <francois.pr@videotron.ca> wrote: > >> declaring variables inside a method that are accessibles to all the >> nested methods. >> > > This isn't possib...Francoys_Proulx (Francois Proulx)
=begin Brian Candler wrote: > On Thu, Nov 27, 2008 at 03:32:18AM +0900, Francoys wrote: > >> declaring variables inside a method that are accessibles to all the >> nested methods. >> > > You can do this with closures: > ...Francoys_Proulx (Francois Proulx)
=begin Yukihiro Matsumoto wrote: > > Ah, maybe. But this syntax can be spared for more fantastic purpose, > such as defining a method only visible from enclosing method, for > example. You can redefine a method using #define_metho...Francoys_Proulx (Francois Proulx)
=begin It's possible to create a method inside a method. I've never see any mention of this in any documentation. It's a feature that is officially part the spec of the language or it's a bug ? =end Francoys_Proulx (Francois Proulx)
=begin I understand the difference in the use of variable and constant. But sometime you need to be able to assigned a value dynamiquely when you are initializing your application. I see 2 possibility to address the problem: