[Swift-devel] Problem with iterate

Mihael Hategan hategan at mcs.anl.gov
Fri Feb 19 11:44:19 CST 2010


On Fri, 2010-02-19 at 11:36 -0600, Ioan Raicu wrote:
> But doesn't the single assignment criteria prevent loops from
> happening in the dependency graph?

No. What you are probably thinking is that if each node in a graph would
represent an assignment then the loop would only be executed once after
which, due to single assignment, there would be an error.

However the loop is not executed at all, because there is no way to
satisfy the dependencies of both nodes (x depends on y and y depends on
x).




More information about the Swift-devel mailing list