(* ========================================================================= *) (* MOSCOW ML SPECIFIC FUNCTIONS *) (* Copyright (c) 2002 Joe Leslie-Hurd, distributed under the BSD License *) (* ========================================================================= *)
structure Portable :> Portable = struct
(* ------------------------------------------------------------------------- *) (* The ML implementation. *) (* ------------------------------------------------------------------------- *)
val ml = "mosml";
(* ------------------------------------------------------------------------- *) (* Pointer equality using the run-time system. *) (* ------------------------------------------------------------------------- *)
local val address : 'a -> int = Obj.magic in fun pointerEqual (x : 'a, y : 'a) = address x = address y end;
(* ------------------------------------------------------------------------- *) (* Ensuring that interruptions (SIGINTs) are actually seen by the *) (* linked executable as Interrupt exceptions. *) (* ------------------------------------------------------------------------- *)
prim_val catch_interrupt : bool -> unit = 1 "sys_catch_break"; val _ = catch_interrupt true;
(* ------------------------------------------------------------------------- *) (* Forcing fully qualified names of functions with generic names. *) (* ------------------------------------------------------------------------- *)
(*BasicDebug val explode = () and foldl = () and foldr = () and implode = () and map = () and null = () and print = () and rev = ();
*)
(* ------------------------------------------------------------------------- *) (* Ad-hoc upgrading of the Moscow ML basis library. *) (* ------------------------------------------------------------------------- *)
fun Real_isFinite (_ : real) = true;
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.