0

皆さん、MLでの次の割り当ての違いは何ですか、

val n = 5;

n := 1;
4

1 に答える 1

5

The former is a declaration of a new, immutable variable. The latter is how you re-assign the value of a reference cell.

于 2011-03-02T17:11:01.387 に答える