Preventing .init for Archive struct, Programming in D, page 295
Brother Bill
brotherbill at mail.com
Fri Sep 12 15:31:37 UTC 2025
On Friday, 12 September 2025 at 15:24:46 UTC, Monkyyy wrote:
> On Friday, 12 September 2025 at 15:20:38 UTC, Brother Bill
> wrote:
>> Is is possible to 'disable' .init for a struct?
>
> No (and honestly it's bad style to break the constructors)
Please expound on why its 'bad style' to disable constructors.
Would you accept that disabling postblit may be the exception?
More information about the Digitalmars-d-learn
mailing list