This works: %{ int ex1[3][4] = { {5, 1, 9, 5} , {7, 5, 3, 0} , {2, 4, 6, 8} }; %} val ex1 = $extval(matrixref(int, 3, 4), "ex1")
On Fri, Feb 9, 2018 at 5:59 PM, Julian Fondren <julian.fond...@gmail.com> wrote: > (Although this is wrong, and causes a segfault.) > > On Friday, February 9, 2018 at 4:44:40 PM UTC-6, Julian Fondren wrote: >> >> One might prefer to define the table in the target language, even C: >> >> %{ >> int ex1[3][4] = {{5, 1, 9, 5}, >> {7, 5, 3, 0}, >> {2, 4, 6, 8}}; >> %} >> val ex1 = $extval(arrayref(arrayref(int, 4), 3), "ex1") >> >>> >>> -- > 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/41f32d30-77a4-42ef-86e3-87da0647fe35% > 40googlegroups.com > <https://groups.google.com/d/msgid/ats-lang-users/41f32d30-77a4-42ef-86e3-87da0647fe35%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPPSPLqO2KmLBOEKG-AKNtNSgVTQT3T%2B2wLLwvnE34b9kjQuiw%40mail.gmail.com.