Two Scala annotations

Jonathan M Davis jmdavisProg at gmx.com
Tue Jul 3 00:49:27 PDT 2012


On Tuesday, July 03, 2012 09:42:58 Don Clugston wrote:
> On 02/07/12 23:20, Walter Bright wrote:
> > On 7/2/2012 1:04 PM, bearophile wrote:
> >> Walter Bright:
> >>> Put "final" in front of y, and it will compile. Remember, this was
> >>> done for D1
> >>> that didn't have const.
> >> 
> >> I see. So in D2 are we going to require that y to be immutable?
> > 
> > No. I don't agree there's a problem. Nor do I care to break existing D1
> > code (and D2 for that matter) without an awfully good reason, and I
> > don't see one here.
> 
> This behaviour is *not* currently in the spec.

Related: http://d.puremagic.com/issues/show_bug.cgi?id=6176

- Jonathan M Davis


More information about the Digitalmars-d mailing list