Avoid attribute soup by doing attribute-infering for function(s) of template type

Kagamin spam at here.lot
Thu Jan 30 10:08:20 UTC 2025


You probably want `inout` here, it infers const qualifiers.
```
      struct F(T)
      {
          T[] data;

          inout(T) get(size_t i) inout nothrow @safe
          {
              return data[i];
          }
      }
```


More information about the Digitalmars-d mailing list