nesting of set notation
| Bugzilla Link | 10 | 
| Created on | Apr 08, 2003 10:35 | 
| Resolution | FIXED | 
| Resolved on | Nov 05, 2003 16:01 | 
| Version | 1.00beta | 
| OS | SunOS | 
| Architecture | Sun | 
Extended Description
There is a problem when nesting the set notation.
Simple example:
int main()
{
  v = [1,2,3,4];
  m = [v, v, v];
  a = [m,m];
#if 0
  a = { [i,j] -> {[k] -> a[[0,...,k]]} [j,i] };
#else
  tmp = {[k] -> a[[0,...,k]] };
  a = { [i,j] -> tmp[[j,i]] };
#endif
  return( a[[0,0]]);
}
The commented out version does not survive phase 2 of the compiler 8-(