[Nickle]Array comprehension changes

Keith Packard nickle@nickle.org
Fri, 09 Aug 2002 15:13:48 -0700


Carl came up with the improved syntax which now works:

	a)	int[10] i = { [j] = j + 1 };
	b)	int[10] i = { [j] { 
				int c = 0;
				for (int k = 0; k <= j; k++) 
					c += k;
				return c;
			} };

Bart asked for a way to name the array inside the comprehension, so I came 
up with '[]':

		int[10] i = { [j] = dim([]) - j };

-keith