macro expansion during module compilation

From: Andrew John Sadler <ajs2_at_icparc.ic.ac.uk>
Date: Wed 12 Sep 2001 11:32:53 AM GMT
Message-Id: <E15h8GD-00009e-00@ilford.icparc.ic.ac.uk>
The following code when compiled with...

ilford: eclipse -e 'lib(fcompile),fcompile("macro_fail",[outdir:"."])'



code--------------------------
:- module(foo).

test(Ls) :-
	(foreach(L,Ls) do
	    writeln(L)
	).

:-test([a-b,c-d]).
code--------------------------



When loaded with

ilford: eclipse -e 'use_module(macro_fail)'

produces this error

error on loading-------------
calling an undefined procedure do__4([a - b, c - d]) in module foo

*** compilation aborted
	before line 1 in the file /a/breeze/extra5/ajs2/macro_fail.eco
abort
error on loading-------------
Received on Wed Sep 12 12:32:55 2001

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