Implicit cast primitive type construction

ryuukk_ ryuukk.dev at gmail.com
Fri Oct 11 05:42:35 UTC 2024


On Thursday, 10 October 2024 at 20:25:31 UTC, Daniel N wrote:
> On Thursday, 10 October 2024 at 17:52:36 UTC, ryuukk_ wrote:
>> I was doing this:
>>
>> `cstats.stamina = cstats.stamina + 1;`
>>
>>
>> but it doesn't compile
>>
>
> basically the only solution is
> cstats.stamina += 1;

My mistake sorry, it's `cdef.stamina + 1`, so can't do `+= 1`, i 
should have copy pasted the whole block instead for clarity


More information about the dip.ideas mailing list