do you like?

Dave Jones djones at megatest.UUCP
Mon Feb 22 11:26:09 AEST 1988


in article <906 at PT.CS.CMU.EDU>, edw at IUS1.CS.CMU.EDU (Eddie Wyatt) says:
> 
> 
>   I'm soliticing  comments on two new macro I added to my repetoire of
> useful things.
> 
> 
> #define IMPORT(from)    extern
> #define EXPORT(to)     
> 
> 
> example of usage:
> 
> IMPORT (geometry.c) 		TOKEN vw_trans_at();
> EXPORT (tokenf.c main.c) 	void add_to_frametable();
> -- 
> 
> Eddie Wyatt 				e-mail: edw at ius1.cs.cmu.edu

Did you say what you meant to say?  I think not.  If so I don't understand.
So I don't know if the following comment is applicatble or not.  But
here goes, anyway:

Macros constitute a flawed but useful mechanism for abstraction.  Use
them for that purpose.

Macros which effectively make changes to C syntax are a pain in the butt.
I too find many deficits in C syntax.  But trying to correct them with SLM's 
(silly little macros) just forces the code maintainer to grep around in your
 .h files trying to figure out what you REALY were saying.

I

a
m

p
u
t
t
i
n
g

t
h
i
s

h
e
r
e

f
o
r

i
n
e
w
s
,

to make my reply as long as the original.  Phfft!



More information about the Comp.lang.c mailing list