MLRep structure appears to be the safest bet however it is not compatible with that of SML/NJ which makes me wonder if it is meant to be an internal structure, not really exposed. But if that was the case, then why is it exposed?<br>
Should the MLRep structures in MLton and SML/NJ versions of NLFFI lib be updated to be compatible?<br><br>Only other option I can think of is to use types like int32_t on the C side and Int32.toInt on the SML side, avoiding C int-s.<br>
<br>So what is the correct way to convert a C int to an ML int?<br><br>Ivan<br>