Why do immutable variables need reference counting?
H. S. Teoh
hsteoh at quickfur.ath.cx
Mon Apr 18 14:23:24 UTC 2022
On Mon, Apr 18, 2022 at 12:55:26PM +0000, wjoe via Digitalmars-d-learn wrote:
> On Sunday, 17 April 2022 at 14:14:37 UTC, H. S. Teoh wrote:
> > 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
[...]
> Thanks. Either I missed that the last time I checked or it wasn't
> there ;)
> But the interesting question is: does the compiler go out of its way
> to make that happen or is it just paragraphs written in the spec?
My guess: the spec was amended after the fact. :-D
T
--
Those who don't understand D are condemned to reinvent it, poorly. -- Daniel N
More information about the Digitalmars-d-learn
mailing list