[Swift-devel] program order

Mihael Hategan hategan at mcs.anl.gov
Sun Feb 10 11:45:10 CST 2008


On Sun, 2008-02-10 at 11:50 +0000, Ben Clifford wrote:
> This works in the present code - type and mapping declaration after 
> assignment (see tests/language-behaviour/040-program-order.swift)
> 
> outfile = greeting("hi");
> messagefile outfile <"040-program-order.out">;
> 
> When implementing some more compile time checking, I rediscovered this. 
> I'm not sure whether I prefer this to be permitted or to be prohibited.

Does it really? Or does it cause a race condition which happens to work
most of the times?

> 




More information about the Swift-devel mailing list