Why do immutable variables need reference counting?

wjoe invalid at example.com
Mon Apr 18 12:55:26 UTC 2022


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
>
>
> T

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?



More information about the Digitalmars-d-learn mailing list