How to construct a struct that does not explicitly define a constructor

Paul Backus snarwin at gmail.com
Sat Mar 1 02:54:04 UTC 2025


On Saturday, 1 March 2025 at 02:19:55 UTC, Meta wrote:
> On Saturday, 1 March 2025 at 00:47:20 UTC, Paul Backus wrote:
>> What you can do is use curly-brace initialization syntax:
>>
>
> Thanks, I forgot about that syntax. Another question I have is 
> if there's a way to do this inline:

No, there's no way to do it inline.

Really, the ideal solution here would be to get rid of your 
`static opCall` overload (for example, by turning it into a 
regular `static` method instead).


More information about the Digitalmars-d-learn mailing list