Generic Packages
Jerry Carlin
jmc at ptsfa.UUCP
Fri Aug 8 02:41:16 AEST 1986
In the August, 1986 issue of SIGPLAN Notices (ACM Programming Languages SIG)
there is an article on Generic Packages in C.
Abstract: "The structuring achieved by generic packages in Ada can be
chapely emulated in C by judicious use of the preprocessor. Two files
are required for the generic package: the specification and the body. Two
more files are used in the instantiation: one holding the instantiation
parameters and one with auxiliary code. Instantiation results in normal
C header and object files (*.h and *.o). Dependency control can be delegated
to the make program."
Ada "generic packages" are a way of allowing the use of 'types' as
parameters.
--
voice= 415 823-2441
uucp={ihnp4,dual,qantel}!ptsfa!jmc
More information about the Comp.lang.c
mailing list