Re: [eclipse-users] Conditional jump out of loops

From: Paulo Moura <pmoura_at_...16...>
Date: Wed, 24 Jan 2007 11:31:03 +0000
On 2007/01/23, at 23:47, David Tian wrote:

> I want to find out how to jump out of a loop in ECLiPSe and go to  
> the upper
> level of the program. In java, there is 'break'; is there a  
> predicate does the
> same thing in ECLiPse?

Maybe you can use catch/3 at the upper level and throw/1 inside your  
loop?

Cheers,

Paulo


-----------------------------------------------------------------
Paulo Jorge Lopes de Moura
Dep. of Computer Science, University of Beira Interior
6201-001 Covilhã, Portugal

Office 4.3  Ext. 3257
Phone: +351 275319891 Fax: +351 275319899
Email: <mailto:pmoura_at_...16...>

Home page: <http://www.di.ubi.pt/~pmoura>
Research: <http://logtalk.org/>
-----------------------------------------------------------------
Received on Wed Jan 24 2007 - 11:31:48 CET

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST