Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!pasteur!ucbvax!NRL-CSS.ARPA!cornwell From: cornwell@NRL-CSS.ARPA (Mark Cornwell) Newsgroups: comp.lang.modula2 Subject: union types Message-ID: <8803221947.AA00248@nrl-iws6.ARPA> Date: 22 Mar 88 19:47:52 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Info-Modula2 Distribution List Organization: The Internet Lines: 16 I'm trying to build a Modula-2 interface to a C-library an have hit a snag. Can anyone construct a suitable translation of: struct obj_name { int obj_type; union { int id; char *path; } obj_id; }; All my attempts are quite ugly and reqire introducing more extra identifiers and syntax than I would like. -- Mark Cornwell