« Return to Thread: Defining a function inside a function. Whats this feature ? How to use inside a class ?

Re: Defining a function inside a function. Whats this feature ? How to use inside a class ?

by Yukihiro Matsumoto :: Rate this Message:

Reply to Author | View in Thread

Hi,

In message "Re: Defining a function inside a function. Whats this feature ? How to use inside a class ?"
    on Tue, 8 Jan 2008 21:15:40 +0900, Sur <sur.max@...> writes:

|I am not sure if I have seen it being used earlier or probably I don't know
|how to use it.
|
|when I define function(s) inside a function within the main object, it
|works...

Don't use def inside of def, in general.  The behavior might be
changed in the future (2.0 or later).

                                                        matz.

 « Return to Thread: Defining a function inside a function. Whats this feature ? How to use inside a class ?