top | item 41314765

(no title)

ckocagil | 1 year ago

Valgrind didn't catch it?

discuss

order

WalterBright|1 year ago

It was before valgrind. Besides, valgrind isn't always available, it requires all code paths to be tested, and it can be really slow making it impractical for some code.

Default initialization, on the other hand, gives 100% coverage. Experience with it in D is a satisfying success.

lttlrck|1 year ago

May have been impractical to run valgrind eg embedded. A decent compiler should catch this anyway? -Wall?

WalterBright|1 year ago

Testing all code paths means all code paths must be available to the compiler. This is not always practical.