[article] Language Design Deal Breakers

Walter Bright newshound2 at digitalmars.com
Wed May 29 02:28:36 PDT 2013


On 5/29/2013 12:46 AM, Sergei Nosov wrote:
> On Wednesday, 29 May 2013 at 07:35:43 UTC, Walter Bright wrote:
>> On 5/29/2013 12:01 AM, Sergei Nosov wrote:
>>> What would be the NotNull.init.p value then?
>>
>> null, but use of it is disabled.
>
> So it breaks the ability to always make a default initialization of a struct. As
> I understand, this ability was kind of important. Is there any solution for this
> planned? And if no, do you provision any negative consequences?

The whole point of a notnull is to disallow default initialization.


More information about the Digitalmars-d mailing list