[Swift-devel] uninitialized variables...

Mihael Hategan hategan at mcs.anl.gov
Tue Jul 5 13:08:42 CDT 2011


... there's a patch committed now to detect them at compile time.

Previously the following would hang:

int a, b;

int c = a + b;

trace(c);

It now fails at compile time with a complaint that a is uninitialized.




More information about the Swift-devel mailing list