dmd 2.063 beta 5

Dicebot m.strashun at gmail.com
Mon May 27 10:30:05 PDT 2013


On Monday, 27 May 2013 at 17:08:19 UTC, Leandro Lucarella wrote:
> You can achieve the same with:
>
> 		if (!IPv6)
> 			etherType = 0x0800;
> 		else
> 			...
>
> There is no need to double-initialize a immutable value.

As I have already answered to Don it is all about T.init - only 
way to change it currently is to use initalizer syntax. It is 
hardly an issue with this use case - more like the general issue 
that such syntax was chosen for something that does not mean 
initialization.


More information about the Digitalmars-d-announce mailing list