Detect uninitialized class var access

rassoc rassoc at
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

  6 | puts f.x
Error: read before assignment to local variable 'f'


More information about the Digitalmars-d-learn mailing list