Using .require for struct types

Steven Schveighoffer schveiguy at gmail.com
Sat Sep 10 18:39:55 UTC 2022


On 9/10/22 12:33 PM, Erdem Demir wrote:

> Can you please suggest alternatives?
> 

Use a pointer.

```d
DListOfA *returnVal = &temp.require(...);
returnVal.insert(a);
```

-Steve


More information about the Digitalmars-d-learn mailing list