Filip Konvička wrote:

Yes, the cell's value is logically "backtracked" as well as everything else when you reach the second choice. This is because "choice" creates computational spaces, try reading chapter 12 of the language tutorial.

Oh, wow! You can backtrack an... assignment!?!?
OK, so how would you actually approach this problem then??

I'd have thought that some kind of state would be the way to go, at least for something non-concurrent. (I had also tried using a global dictionary, using the parse level as the key, but the system kicked it out saying I couldn't set a global value from a local procedure, or some such. Fair enough, but what are the options?)

I'd really be curious to see the elegant Oz solution to this, which, after all, is a reasonable simulation of a real-world spec!


_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to