[ExM Users] 2D arrays

Ketan Maheshwari ketan at mcs.anl.gov
Thu Jun 26 14:44:57 CDT 2014


Are 2D arrays of this style supported in T:

main {
foreach i in [0:31]{
        /*string commands[] = ["head","tail","wc","stat"];*/
        foreach j in [0:24]{
                string pyline=sprintf("import cPickle as
pickle\n\nrepr(pickle.dumps({'foo1':%s,'foo2':%s}))", i, j);
                string pickle[i][j] = python(pyline);
        }
}
}

stc gives following error:

stc error:
multi-map-reduce.swift:15:3: The following type was not defined in the
current context: j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140626/9e69d7ad/attachment.html>


More information about the ExM-user mailing list