Enum literals, good? bad? what do you think?
Walter Bright
newshound2 at digitalmars.com
Thu Jul 22 04:26:45 UTC 2021
On 7/21/2021 7:12 PM, zjh wrote:
> I am also `experienced ` C++ Programmer,why I don't hurt from it?
There are many ways to experience C++.
Anyhow, the reason that default constructors are not allowed is so that default
constructing an object will always succeed. This makes for a significant
reduction in complexity. For example, default construction then becomes pure and
nothrow.
Not everyone agrees, of course.
More information about the Digitalmars-d
mailing list