[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread Alex Mcauley
roto-Scripty] Re: private methods/variables declaration > > Super, I like the word "shared". I'll keep an eye not to have any > state in the private block :-) > > cheers > > -- > mona > [EMAIL PROTECTED] > > On Mon, Nov 17, 2008 at 4:23 PM, kangax &l

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread Mona Remlawi
Super, I like the word "shared". I'll keep an eye not to have any state in the private block :-) cheers -- mona [EMAIL PROTECTED] On Mon, Nov 17, 2008 at 4:23 PM, kangax <[EMAIL PROTECTED]> wrote: > > On Nov 17, 4:13 am, "Mona Remlawi" <[EMAIL PROTECTED]> wrote: > [...] >> I'm wondering if this

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread kangax
On Nov 17, 4:13 am, "Mona Remlawi" <[EMAIL PROTECTED]> wrote: [...] > I'm wondering if this is a good practice. Are there any insights that > i should be aware of? Are the private methods/functions being > duplicated for each of myclass instance? If what you need is to create private static ("cla

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread T.J. Crowder
Hi Mona, > Are the private methods/functions being > duplicated for each of myclass instance? No, there is a single copy of each private variable and private method, contained within the outer closure, which is referenced by public methods you define because they, too, are closures. That means