Le mardi 7 août 2018 04:18:01 UTC+2, gmhwxi a écrit : > > > @[int][3] is the type for a flat int array of size 3. > > Unfortunately, it is not fully supported at this point > (it can only be assigned to a var). Please use @(int, int, int) > instead. >
Indeed, this works if there are only top‑level vars: #include "share/atspre_staload.hats" typedef row = @[int][3] var row:row = @[int](1, 2, 3) val r2 = row[2] I just though although multiple dimension array types is not supported, it could be supported indirectly the way I tried it. It was not my matter, but may be for arrays with multiple dimension, using abstract types and external implementation may be an option, but I have never tried it. -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-users+unsubscr...@googlegroups.com. To post to this group, send email to ats-lang-users@googlegroups.com. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/a35ec12f-c8f0-4871-9ac6-b588c1873885%40googlegroups.com.