tg counter robustness

Dukc ajieskola at gmail.com
Fri May 30 14:12:20 UTC 2025


On Friday, 30 May 2025 at 13:35:07 UTC, monkyyy wrote:
> On Friday, 30 May 2025 at 10:08:54 UTC, Dukc wrote:
>> So there's no point in discussing what should make the unit 
>> test to pass or fail.
>
> I currently believe nothing does and this is a highly flexible 
> feature thats been in the compiler for years

Doesn't matter. Whatever it does currently does isn't meant to be 
relied upon. It might change at any time.

Of course you can exploit what the compiler currently does but 
that's like using a kettle filled with boiling water as your 
clothes iron. Might work by accident, but neither the kettle nor 
your clothes are designed for that in mind and it's begging for 
trouble if you can just use a real clothes iron.

Or are you opining that this particular hack _should_ be defined 
behaviour? If, what exactly should be guaranteed and why?


More information about the Digitalmars-d mailing list