Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <> 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 Archives:
Bug reports: FAQ:
Beginner's list: