Path: news.daimi.aau.dk!news.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!sunic!news99.sunet.se!nntp-trd.UNINETT.no!nntp.uio.no!NewsWatcher!user From: Kolbjorn.Aambo@ub.uio.no (Kolbjørn Aambø) Newsgroups: comp.lang.beta Subject: UNION in BETA Date: Tue, 19 Mar 1996 12:08:15 +0100 Organization: University of Oslo Library Lines: 35 Message-ID: NNTP-Posting-Host: ubmac86.uio.no In C I can define struct cell { union { long int; short int n[2]; unsigned char c[4]; }; }; cell s; Here c can be regarded as a integer s = 234; s.n[0] = 'ab'; said another way: s.c[0] = 'a'; s.c[1] = 'b'; Can something like this be expressed in BETA now or in the future? -- Kolbj|rn H. Aamb|, University of Oslo library/Bibliographic dept. N-0242 Oslo, Norway kolbjorn.aambo@ub.uio.no Phone: +47 22 85 91 36 ................................................................. They brought their books, the natives had their land, then... they got their land, the natives only books.