Detect uninitialized class var access
rassoc
rassoc at posteo.de
Sat Sep 24 23:04:00 UTC 2022
On 9/24/22 15:28, Adam D Ruppe via Digitalmars-d-learn wrote:
> gdb --args ./your_program
>
> and then it will tell you all the details you want to know about when this happens.
Thank you for your input, Adam. Real shame that there's no built-in compiler solution and probably never will be according to [1]. :(
D's competition got stuff like this right:
```
> crystal build foo.cr
In foo.cr:6:6
6 | puts f.x
^
Error: read before assignment to local variable 'f'
```
[1] https://issues.dlang.org/show_bug.cgi?id=4595
More information about the Digitalmars-d-learn
mailing list