(* Initialise the toplevel environment. -*- tuareg -*-
- * $Id: init,v 1.9 2008/02/01 15:25:16 rjones Exp $
+ * $Id: init,v 1.10 2008/02/13 17:17:31 rjones Exp $
* - Removes the Pervasives module and any dangerous functions.
* - Loads just the modules we want to give access to, and just
* the functions within those modules that we want to give.
module StringMap = Map.Make(String)
(* Create an object, so we get the CamlinternalOO module. *)
-(* XXX Are any of the methods unsafe? *)
let _ = object end
-(* Load our custom grammar, which disables "external". *)
+(* ... but prevent public access to CamlinternalOO. *)
+module CamlinternalOO : sig
+end = struct end
#load "camlp4o.cma";;
#load "./pa_noexternal.cmo";;
(* Initialise the toplevel environment. -*- tuareg -*-
- * $Id: init.in,v 1.6 2008/02/01 15:25:16 rjones Exp $
+ * $Id: init.in,v 1.7 2008/02/13 17:17:31 rjones Exp $
* - Removes the Pervasives module and any dangerous functions.
* - Loads just the modules we want to give access to, and just
* the functions within those modules that we want to give.
module StringMap = Map.Make(String)
(* Create an object, so we get the CamlinternalOO module. *)
-(* XXX Are any of the methods unsafe? *)
let _ = object end
-(* Load our custom grammar, which disables "external". *)
+(* ... but prevent public access to CamlinternalOO. *)
+module CamlinternalOO : sig
+end = struct end
#load "camlp4o.cma";;
#load "./pa_noexternal.cmo";;