
4.7.5 The Language structure
Shell.Options.Language
val fixityInOpen: bool option
true, allow inclusion of fixity in open. This option considers fixity information given in structures when opened. If this option is not checked when they are defined, structures containing fixity information will be accepted, but the fixity information will not be available when they are opened.
MLWorks> structure S = struct infix $$$ end; structure S = struct end MLWorks> open S; MLWorks> val $$$ = 3; val $$$ : int = 3 MLWorks>
val $$$ =3;
op preceding the $$$ to show that it was not a reference to the operator with the same name. With fixityInOpen set to true, the fixity information in the structure is used:
MLWorks> set (fixityInOPen, true); val it : unit = () MLWorks> structure S = struct infix $$$ end; structure S = struct end MLWorks> open S; infix 0 $$$ MLWorks> val $$$ = 3; MLWorks>
"Reserved word 'op' required before infix identifier '$$$'" appears.

Generated with Harlequin WebMaker