[mercury-users] Conditional compilation

Michael Day mikeday at bigpond.net.au
Tue Feb 5 16:25:10 AEDT 2002


Hi,

Is there any way to achieve conditional compilation in Mercury without 
resorting to foreign_code #ifdef hackery?

More precisely, say you have a program that can do several different 
things and you wish to specify which of those things should be compiled in 
without having to edit the code manually each time. Presumably Mercury 
itself has something along these lines for supporting a particular set of 
grades, specified by the configure script?

Michael

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list