[Fwd: eclipse bug]

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Fri 06 Oct 2000 10:12:33 AM GMT
Message-ID: <39DDA591.BE0B925D@icparc.ic.ac.uk>
 

attached mail follows:


Here is the source that causes a problem under both Unix and Windows
versions:

% this fragment causes eclipse 5.0 to die
%
% inserting brackets as indicated solves the problem

dfs(_, _, [], Z, Z).

dfs(N, P, V, S, Z) :-
(	member(M, P) ->
	(
		% found a cycle
		append([N],  P, P1),
		append([P1], S, S1),
		!,

		% if any vertices left, search further
		/* ( */
			length(V1) > 0 ->
			(
				append(H, _, V1),
				dfs(H, [], V1, S1, Z)
			);
			(
				dfs(_, [], [], S1, Z)
			)
		/* ) */
	);
	(
		% M doesn't complete a cycle
		dfs(M, [N|P], V, S, Z)
	)
).


It appears that, missing the brackets, eclipse is taking the cut as part
of the condition, but that the parser is failing to cope with this.  I
hope this is of some help!


Regards,

Neil


-------------------------
Neil YORKE-SMITH            
IC-Parc, Imperial College
London SW7 2AZ  UK
Received on Fri Oct 06 11:12:35 2000

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:01 PM GMT GMT