So basically your saying that the only function that can alter an object before its frozen is the constructor, thats why we need multiple constructors?
You'll have to subclass with another constructor or come up with syntax for multiple constructors. On Oct 11, 2011 11:46 PM, "Kevin Reid" <kpr...@switchb.org> wrote: On Oct 11, 2011, at 18:29, Jake Verbaten wrote: > Point.zero = function () { > return (new Point)... I agree with "things should be just methods", but this particular pattern doesn't work for always-frozen types. -- Kevin Reid <http://switchb.org/kpreid/> _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss