Article View: comp.lang.modula2
Article #4129union types
From: Mark Cornwell
Date: Tue, 22 Mar 1988 19:47
Date: Tue, 22 Mar 1988 19:47
17 lines
825 bytes
825 bytes
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
Technical Details
Message-ID:
<8803221947.AA00248@nrl-iws6.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!pasteur!ucbvax!NRL-CSS.ARPA!cornwellShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 <INFO-M2%UCF1VM.bitnet@jade.berkeley.edu> Organization: The Internet Lines: 16