Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!sri-spam!mordor!lll-crg!micropro!ptsfa!jmc From: jmc@ptsfa.UUCP (Jerry Carlin) Newsgroups: net.lang.c Subject: Generic Packages Message-ID: <1528@ptsfa.UUCP> Date: Thu, 7-Aug-86 12:41:16 EDT Article-I.D.: ptsfa.1528 Posted: Thu Aug 7 12:41:16 1986 Date-Received: Sat, 9-Aug-86 07:36:56 EDT Organization: Pacific * Bell, San Francisco Lines: 17 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