mattunlv / ProcessJ-main-branch-old

ProcessJ Compiler Project
2 stars 4 forks source link

multi-dimensional arrays of new'd channels #14

Open mattunlv opened 7 years ago

mattunlv commented 7 years ago

import std.io;

//proc void bar(chan.read[][] chans) { }

proc void foo() { chan[][] c = new chan[100][10];

//bar(c.read);

}

Compilation successful /Users/matt/.processj/t2.java:7: error: illegal start of expression _ld0$c = = new PJOne2OneChannel[10010]; ^ /Users/matt/.processj/t2.java:9: error: illegal start of expression [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: not a statement [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: ';' expected [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: not a statement [i] = new PJOne2OneChannel(); ^ /Users/matt/.processj/t2.java:9: error: ';' expected [i] = new PJOne2OneChannel(); ^ 6 errors

also breaks for a simpler program:

proc void foo() { chan[] c = new chan[100]; }