Can someone tell me what the compiler thought I was trying to do?

mw mingwu at gmail.com
Wed Oct 19 01:34:54 UTC 2022


On Wednesday, 19 October 2022 at 01:30:23 UTC, H. S. Teoh wrote:
> On Wed, Oct 19, 2022 at 01:15:37AM +0000, Adam D Ruppe via
>> 
>> it only applies to types, not to functions.
>
> Wat... so what's the use of it then?  So it's not possible to 
> mark the return value of an int function @mustUse without 
> making, in theory, *all* ints @mustUse?
>
> I must confess I'm baffled as to the purpose of this strange 
> design.
>

Same, can't believe it.

Is there any (design) doc about this?



More information about the Digitalmars-d-learn mailing list