English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Safe Caml for online teaching
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-02-20 (17:36)
From: Remi VANICAT <vanicat@l...>
Subject: Re: [Caml-list] Safe Caml for online teaching
Martin Jambon <m.jambon@ibcp.fr> writes:

> On Wed, 20 Feb 2002, Alain Frisch wrote:
> > What you describe seems to be overkill for the purpose. You could simply
> > build a toplevel with a restricted standard library (without interaction
> > with the OS and without unsafe operations like Obj), disabled directives,
> > and use a wrapper to kill the toplevel when some timeout expires.
> >
> > What's wrong with this ?
> Nothing's wrong with this in fact.
> The only difference is that the user wouldn't know which values are really
> unbound and which are simply discarded for security purposes.

you could replace all discarded function by a

failwith "unsafe";;

Rémi Vanicat
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners