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.

Reply via email to