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: John Max Skaller <skaller@o...>
Subject: Re: [Caml-list] two unrelated questions
"JudicaŽl Courant" wrote:

> >   exception Break
> >   try
> >     List.iter (fun ..  -> ...  raise Break) l
> >   with Break -> ()

Unfortunately:

	let f x = 
		exception Break 
		try ... raise Break ...
		with Break -> ()
	;;

is in error, because exception declarations must be at the top
level. This prevents desired localisation: this feature is not
as good as a labelled break for this purpose.

-- 
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr