https://issues.dlang.org/show_bug.cgi?id=13589
Iain Buclaw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #13 from Iain Buclaw <[email protected]> --- (In reply to Martin Nowak from comment #12) > The basic problem with this is using inference on something that cannot be > inferred. > > void seeminglyPure() { > // ... > // many lines of code > // ... > asm { > // impure instruction > } > } > > Now when someone adds pure to seeminglyPure it would silently break. You could perhaps get away with inference with naked functions, as they shouldn't have any high-level code inside. --
