Why do immutable variables need reference counting?
H. S. Teoh
hsteoh at quickfur.ath.cx
Sun Apr 17 14:14:37 UTC 2022
On Sun, Apr 17, 2022 at 04:09:12PM +0200, ag0aep6g via Digitalmars-d-learn wrote:
[...]
> Failing asserts are a messy part of the language. They are supposed to
> be:
>
> 1) not catchable, because they indicate a bug in the program;
> 2) catchable in order to be testable;
> 3) assumed impossible for optimization purposes.
>
> Those goals are at odds with each other, and I don't think the spec
> manages to consolidate them.
Not entirely true. See paragraph 3 in:
https://dlang.org/spec/unittest.html
and 10.24.11.3 in:
https://dlang.org/spec/expression.html#assert_expressions
T
--
Latin's a dead language, as dead as can be; it killed off all the
Romans, and now it's killing me! -- Schoolboy
More information about the Digitalmars-d-learn
mailing list