>
> We’ll have to see if Erik or others with more JS and Goog experience can
> answer that.  IIRC, in just vanilla JS, a private member would be on the
> prototype and some other thing like an annotation would try to keep people
> from using it outside the class via some compile-time checking.  However,
> this fails in surprising ways for any members whose initial values are not
> scalars.  For example:
>
>   private var children:Array = [];
>
> If this becomes
>
> /**
>  * @private
>  */
> MyClass.prototype.children = [];
>
> Then all instances share the one array...
>

That sounds not right. I'll have to do some experimenting to disprove that,
but it just doesn't ring true.

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to