No need opUnary

j my.email at gmail.com
Mon Dec 19 06:29:11 UTC 2022


On Monday, 19 December 2022 at 04:26:39 UTC, Salih Dincer wrote:
> On Sunday, 18 December 2022 at 21:17:02 UTC, j wrote:
>> Why are you using `@property` everywhere?
>
> You are right but if I don't use it for `opCall()` the output 
> will be like `S(9)`.  Likewise, if I don't use `inout`, the 
> program is terminated.
>
> I think it's a bug with `std.format` that I said last time. 
> Because in old versions it works whether you use `inout` or not.
>
> SDB at 79


That doesn't sound right. It shouldn't be a bug. Which compiler 
are you using?


More information about the Digitalmars-d-learn mailing list