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
https://issues.dlang.org/show_bug.cgi?id=519
Bolpat changed:
What|Removed |Added
CC||qs.il.paperi...@gmail.com
--
---
@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
--
https://issues.dlang.org/show_bug.cgi?id=519
--- Comment #19 from Walter Bright ---
Rebooted as: https://github.com/dlang/dmd/pull/7536/
--
https://issues.dlang.org/show_bug.cgi?id=519
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|D1 D2 |D2
--
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
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
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
https://issues.dlang.org/show_bug.cgi?id=519
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
CC|andrej.mitrov...@gmail.com |
--
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
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
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.)
--
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
--
http://d.puremagic.com/issues/show_bug.cgi?id=519
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
CC|
14 matches
Mail list logo