Special functions, like the old pblit, can be templatized and obviously are never called

user1234 user1234 at 12.de
Mon Apr 13 09:23:24 UTC 2026


example:

```d
struct Test
{
     this()(this)
     {
         static assert (0, "just like @disable");
     }
}

void main()
{
     Test test1;
     Test test2;
     test1 = test2;
}
```

that compiles and run perfectly.


More information about the Digitalmars-d-learn mailing list