BigInt for Standard ML/NJ
问题 Is there a Java BigInt equivalent for Standard ML? The normal int type throws an exception when it overflows. 回答1: Yes, see the IntInf structure. 回答2: The official SML'97 standard basis library introduces a zoo of structures like Int, IntInf, Int32, Int64, LargeInt etc. To actually use them in practice to make things work as expected, and make them work efficiently, you need to look closely at the SML implementation at hand. One family of implementations imitates the memory layout of C and