s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

List indexing using a variable #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tell behaves unexpectedly when a variable is used for indexing. Most likely
the parser doesn't accept a variable as an index. Here is an example:

void test() {
  point list a = { {1,1}, {2,2} };
  int i = 0;

  echo (a[i]);
  // gives: line 1: col 7: Runtime error.Invalid index
  echo (a[0]); //works
}

Original issue reported on code.google.com by krustev....@gmail.com on 9 May 2010 at 8:10

GoogleCodeExporter commented 9 years ago
Fixed in r1532. Quite an interesting one which affects virtually all indexing 
and
list operations. See the updated comments in the parser.

Original comment by krustev....@gmail.com on 6 Jun 2010 at 8:16

GoogleCodeExporter commented 9 years ago
A small addition in r1535 to deal with the hierarchical indexing. 

Original comment by krustev....@gmail.com on 8 Jun 2010 at 9:51

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 1 Apr 2012 at 12:19