[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2023-01-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #21 from Bolpat --- Maybe this can be done via a caller-side lowering: The expression `T(args...)` would become ```d { auto result = T(args...); assert(() @trusted { return }()); return result; }() ``` The @trusted block is

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2023-01-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 Bolpat changed: What|Removed |Added CC||qs.il.paperi...@gmail.com --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2019-06-12 Thread d-bugmail--- via Digitalmars-d-bugs
--- @RazvanN7 created dlang/dmd pull request #10022 "Fix Issue 519 - Invariant not called from autogenerated class/struct constructor/destructor" fixing this issue: - Fix Issue 519 - Invariant not called from autogenerated class/struct constructor/destructor https://github.com/dlang/dmd/pull/10022 --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2018-02-08 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #19 from Walter Bright --- Rebooted as: https://github.com/dlang/dmd/pull/7536/ --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2015-01-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #18 from Andrei Alexandrescu and...@erdani.com --- (In reply to Martin Nowak from comment #17) (In reply to Andrei Alexandrescu from comment #16) I stated this elsewhere, just making sure I don't forget: probably we don't want to

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2015-01-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #17 from Martin Nowak c...@dawg.eu --- (In reply to Andrei Alexandrescu from comment #16) I stated this elsewhere, just making sure I don't forget: probably we don't want to invoke invariants during the GC cycle. Walter has a different

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2014-11-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #15 from Stewart Gordon s...@iname.com --- (In reply to Walter Bright from comment #11) I'm skeptical, however, of the value of running it on default construction, as those values will always be the .init ones. Maybe have a rule that, if

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2014-11-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|andrej.mitrov...@gmail.com | --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2014-11-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #14 from

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2014-11-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #11 from Walter Bright bugzi...@digitalmars.com --- I agree that the invariant should run on non-empty struct literals and on destruction. I'm skeptical, however, of the value of running it on default construction, as those values will

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2014-11-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #12 from Walter Bright bugzi...@digitalmars.com --- https://github.com/D-Programming-Language/dmd/pull/4136 (But does not do invariant call for default construction, will change spec to say that isn't don't.) --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2014-11-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=519 --- Comment #13 from Walter Bright bugzi...@digitalmars.com --- Documentation fix: https://github.com/D-Programming-Language/dlang.org/pull/699 --

[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

2012-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=519 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added CC|