Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] raise extra arg ignored
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] raise extra arg ignored
On Tue, Oct 30, 2001 at 05:17:37PM -0500, Dave Mason wrote:

> The `obvious' solution is to make raise be a statement rather than a
> function.  That has the added benefit of making raise a little
> clearer, to wit, instead of:

I thought of it, but it would not work. If "raise something" is an
expression, as there is a rule "expr expr", then you can syntactically
write:
    
    exception Foo;;
    raise Foo 33 "bar" true;;

No solution.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr