Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] two unrelated questions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Andreas Rossberg <rossberg@p...>
Subject: Re: [Caml-list] two unrelated questions
Patrick M Doane wrote:
> 
> We can even get labelled breaks like Java:
> 
>   exception Break of string
>   try
>     List.iter (fun ... ->
>       try
>         List.iter (fun ... ->
>           if .. then raise (Break "inner")
>                 else raise (Break "outer")
>         ) list1
>       with Break "inner" -> ()
>     ) list2
>   with Break "outer" -> ()

Is there any reason that declaring two different exceptions BreakInner
and BreakOuter does not suffice?

	- Andreas

-- 
Andreas Rossberg, rossberg@ps.uni-sb.de

"Computer games don't affect kids.
 If Pac Man affected us as kids, we would all be running around in
 darkened rooms, munching pills, and listening to repetitive music."
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr