[Swift-devel] Problem with iterate

Mihael Hategan hategan at mcs.anl.gov
Fri Feb 19 12:04:30 CST 2010


On Fri, 2010-02-19 at 11:50 -0600, Ioan Raicu wrote:
> I think we are on the same page, that if you cannot resolve the
> dependencies, things just fall apart. The part I don't get, is why
> would you get a deadlock in this situation (which is where this whole
> discussion started from), as opposed to an error detecting that the
> DAG cannot be constructed? It seems that at the time of DAG
> construction (I assume this is the SwiftScript compilation stage), any
> failure to add nodes to the DAG due to unresolved dependencies should
> return an error and halt, rather than execute until the deadlock
> happens.

a[0] = 0;
a[1] = a[2];
a[2] = a[complexFunctionThatReturns0or1()];

What should happen there?




More information about the Swift-devel mailing list