[Issue 15984] [REG2.071] Interface contracts retrieve garbage instead of parameters

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 2 06:10:51 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15984

--- Comment #9 from MichaelZ <dlang.org at bregalad.de> ---
If this can't be readily fixed, then what exactly must we do (or rather, not
do) in our code to avoid triggering the issue?

Must we avoid using pre- (and post?) conditions in an interface at all?
Or must we avoid using pre- (and post?) conditions on 'override' functions?
Or something else entirely?

So far we've had the issue pop up roughly 4 times, some of those after making
apparently unrelated changes; cleaning up the problematic places once and for
all now that we have the issue in mind, will avoid frustrating bug hunting in
the future...

--


More information about the Digitalmars-d-bugs mailing list