Is @disable obsolete?

Nick Treleaven nick at geany.org
Wed Aug 6 14:37:21 UTC 2025


On Wednesday, 6 August 2025 at 00:42:43 UTC, Brother Bill wrote:
> If a struct has a user provided constructor, then the default 
> constructor is removed.

Is it?

```d
struct S
{
     int i;
     this(int);
}

void main()
{
     S s = S(); // OK
}
```


More information about the Digitalmars-d-learn mailing list