static weirdness

Jonathan M Davis newsgroup.d at jmdavisprog.com
Thu Jan 25 12:58:12 UTC 2018


On Thursday, January 25, 2018 12:42:57 Kagamin via Digitalmars-d-learn 
wrote:
> See https://ideone.com/VZ97dh

I don't know what's going on there. Such an assertion does not seem in line
with what Walter has typically said on the subject.

Thinking about it, I do vaguely recall a discussion sometime last year about
an invariant being invisibly inserted under some set of circumstances. Maybe
that's what's happening? I believe that it was complained about in that
discussion, so maybe it was removed after that. Certainly, if I try that
code locally with master, it runs just fine without hitting any assertions.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list