<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>A question: Consider two modules
like<BR> <BR>(module flavour-A
mzscheme<BR> <BR> some flavour-A
specific definitions defining a representation<BR> <BR> a longer text
defining and providing a number of representation independent procedures using
the representation)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Idem for representation B with exactly the
same<BR>representation independent part.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In order to avoid duplication of
the<BR>representation independent part,<BR>i did the following:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>(module representation-independent
mzscheme<BR> (define-syntax representation-independent<BR>
(syntax-rules ()<BR> ((_ all identifiers defining the
representation)<BR> (begin<BR>
representation independent code)))))</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>(module flavout-A mzscheme<BR> (require
representation-independent)<BR> representation
definitions<BR> (representation-independent<BR> all identifiers
defining the representation))</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Same for flavour B representation</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This works allright. However, a disadvantage is
that in module representation-indepenent the check-syntax tool cannot give much
information because all code is in a template. Is there a smarter way to
accomplish my goal? I rather like to avoid going back to units.<BR>Best wishes,
Jos koot.<BR></FONT></DIV></BODY></HTML>