Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!jfjr@mitre-bedford.arpa From: jfjr@mitre-bedford.arpa Newsgroups: comp.lang.c Subject: Re: Portable Memory Allocation Message-ID: <7759@brl-adm.ARPA> Date: Tue, 9-Jun-87 08:14:22 EDT Article-I.D.: brl-adm.7759 Posted: Tue Jun 9 08:14:22 1987 Date-Received: Fri, 12-Jun-87 01:53:59 EDT Sender: news@brl-adm.ARPA Lines: 20 If you want to allocate nodes oof various sizes efficiently use an extra level of indirection struct{ int constant_part int type_tag union{ char * pointer_to_one_thing char * pointer_to_another_thing char * pointer_to_still_another} } I've used this a couple of times in Pascal and C - as long as you are careful especially in C to keep your types straight it works fine Jerry Freedman,Jr jfjr@mitre-bedford.arp3/