OK I'm sick of this shit. I just wanted to sort a fucking array, is that so hard? I even copied code from the official site:
http://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/CODE/CHAP_EFFECTFUL/insort.datsNever mind that the staloads don't work because the folder structure has been changed since the tutorial was written. But when I try to compile their example code, I get my screen filled with shit like
ray_dats.c: In function ‘__patsfun_23’:
ray_dats.c:1869:22: error: ‘PMVtmpltcstmat’ undeclared (first use in this function)
ATSINSmove(tmpret83, PMVtmpltcstmat[0](compare_g0int_int<S2Eextkind(atstype_int)>)(arg0, arg1)) ;
^
/home/zrx/Packages/ATS2-Postiats-0.1.5/ccomp/runtime/pats_ccomp_instrset.h:260:37: note: in definition of macro ‘ATSINSmove’
#define ATSINSmove(tmp, val) (tmp = val)
WTF is this? I never called macro ‘ATSINSmove’! I don't even have a function called ‘__patsfun_23’! And I can't even find the first line in all that multi-screen-filling barf, so I've no idea what caused the problem. With error reporting like that, I say: fuck you Hongwei Xi, and take your half-assed undergrad project with you.