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] Assert fail in partial application
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Assert fail in partial application
On Jun 17, 2004, at 10:32, Jean-Christophe Filliatre wrote:

> Basile Starynkevitch [local] writes:
>> Assert has nothing magic (except that it passes the file position to
>> the Assert+failure exception). It could be implemented as a camlp4
>> macro.
> Apart from "assert false" which has a special typing rule (it has type
> 'a  not  unit) and  a  special  compilation  (cannot be  removed  when
> -noassert is set).

Both features can be easily implemented with camlp4.  The real problem
in implementing assert within camlp4 is the fact that the asserted
condition is typechecked even if -noassert is set, although this is
not an unsolvable problem.

-- Damien

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: