Now that you mention it, it does seem like the obvious choice. At the very least, it's the most useful suggestion so far.
/ Johan Sundström (a hugging punishment!)
Previous text:
2003-02-06 17:30: Subject: Xor
I think it would be correct to keep looping over all indices - after all, it's just the values that has changed, not which indices that doesn't have the default value.
Thus, foreach ((<1,2,3>);int i;int v) ... would give i:v 1:1, 2:1, 3:1, and foreach (~(<1,2,3>);int i;int v) ... would give 1:0, 2:0, 3:0.
/ Mirar