> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Jon Zeppieri > Sent: 11. april 2008 05:20 > To: Lars Hansen > Cc: liorean; es4-discuss@mozilla.org > Subject: Re: Strict mode recap > > > Apart from that there's no problem. "var" is used to indicate a > > mutable fixture property, but it is just a flag (as is "const"). > > The primary form is just { ns::id: val }, which is a > straightforward > > evolution of the ES3 form { ns: val }. > > Right, I get that, and Brendan's point was a good one. I was > just thrown by the fact that I hadn't seen an example of > > class A { > var public::count = 10; > } > > rather than > > class A { > public var count = 10; > } > > But if the former is legal (and the grammar suggests that it > is), then there's no inconsistency.
It is not legal, and if the grammar suggests that it is then the grammar is buggy. --lars _______________________________________________ Es4-discuss mailing list Es4-discuss@mozilla.org https://mail.mozilla.org/listinfo/es4-discuss