Setting field of struct object
TheTeaLady
TheTeaLady at gmail.com
Fri Feb 2 04:41:18 UTC 2024
On Monday, 22 January 2024 at 11:31:11 UTC, zjh wrote:
> On Monday, 22 January 2024 at 08:54:54 UTC, zjh wrote:
>
>> ```d
>> struct Person {
>> string name, email;
>> ulong age;
>> }
>> Person a{"n","email",33};
>> ```
>
>
> C++ can achieve ultimate `simplicity` without violating `DRY`,
> And here, D violates the `DRY` principle!
> Moreover, as the `package level, module level, class level,
> member level`, D language violates integrity.
> Because D has no `class level` limit.
> These are all not `serious states`.
Apparently comments about module visibility issues are no longer
allowed on the D forum.
I wonder why your comment was not deleted though ??
No wonder there is now a fork of D.
More information about the Digitalmars-d-learn
mailing list