Closed iofjuupasli closed 9 years ago
Yes! That's a good catch! Thanks a lot for this. That's going straight to the test suite :+1:
It appears that the approach I've used in Flyd is too primitive. Moving the definition of b
to after the definition of d
fixes the issue. But obviously Flyd should do the correct thing in all cases.
From the top of my head I think a breath first graph search will be adequate. I'll think more about it.
Nope, simple breath first is definitely not going to cut it. We'll have to determine a proper evaluation order for the dependency graph.
This should be fixed by 555cfac5aa4. The atomic updates should now be completely bulletproof. Unless you can find another breaking case I will close this issue :)
Dependency graph:
Output: