
4.7.5 The Language structure
Shell.Options.Language
val weakTyvars: bool option
true, set the use of weak type variables. This option is only relevant to the SML '90 mode, as imperative and weak type variables are no longer in the ML language. It is included for compatibility with the Standard ML of New Jersey compiler (NJSML).
MLWorks> val v: '1a -> '1a = id;
MLWorks> fun id x = x; val id : 'a -> 'a = fn MLWorks> val id1 : '1foo -> '1foo = id; val id1 : 'a -> 'a = fn MLWorks>
weakTyvars set to true, however, ML converts them into imperative type variables:
MLWorks> fun id x = x; val id : 'a -> 'a = fn MLWorks> val id1 : '1foo -> '1foo = id; val id1 : '_a -> '_a = fn MLWorks>

Generated with Harlequin WebMaker