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
More cores
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-12-19 (17:57)
From: Christophe Raffalli <christophe.raffalli@u...>
Subject: Re: [Caml-list] The Axis of Eval (was: More cores)

Dear list members,
> Incidentally, it is of course possible for a function to invoke impure
> functions while still being pure itself (ie, it ensures the impurity
> does not "leak out").  One question to those more familiar with current
> language research: any recommended resources out there about this topic?
> Cheers,
> Dario Teixeira
You can easily infer purity (meaning no affectation) of an ocaml 
expression using the same algorithm
than for exception (numerous papers on that subkect) ... just tag ":=" 
and "<-" as being able to raise the fake exception "#Affect" which
can not be catch by any try (because its name starts with a "#") ...