Re: recompiling

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Wed 13 Feb 2002 11:02:58 AM GMT
Message-ID: <3C6A47E1.FA01CAEF@icparc.ic.ac.uk>
Mark Wallace wrote:
> 
> Hi,
>  I rewrote Micha's bins example (from the fd library), and tried using
> macros:
> tr_col(red, 3).
> tr_col(green, 2).
> tr_col(blue, 1).

You also need no_macro_expansion-wrappers here, otherwise on
recompilation the predicate will be

tr_col(3, 3).
tr_col(2, 2).
tr_col(2, 1).

since the old macros are still in effect.


Btw, when you make your program a module, you need no wrappers
at all. That's because the module including the macro definitions
will be completely erased before recompilation.


-- Joachim
Received on Wed Feb 13 11:02:59 2002

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