Using .require for struct types

Erdem kerdemdemir at gmail.com
Tue Sep 13 06:11:21 UTC 2022


On Saturday, 10 September 2022 at 18:39:55 UTC, Steven 
Schveighoffer wrote:
> 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

Actually that could be answer I am seeking for I will try it.


More information about the Digitalmars-d-learn mailing list