Never-returning functions

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 2 08:33:10 PDT 2016


On Tuesday, 2 August 2016 at 15:18:31 UTC, Steven Schveighoffer 
wrote:
> What's wrong with assert(0) that you need to have a wrapper 
> function for it?

while this is a legitimate question, the comipler's inability to 
infer "noreturn" still drives me mad. but if compiler will 
suddenly be able to infer that, it would lead to alot of 
"statement unreachable" warnings, and they are alot already...


More information about the Digitalmars-d-learn mailing list