home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!ogicse!psgrain!m2xenix!agora!robart
- From: robart@agora.rain.com (Joe Bob)
- Newsgroups: comp.lang.modula2
- Subject: Re: pascal code to modula
- Message-ID: <C1D7p6.Bo7@agora.rain.com>
- Date: 24 Jan 93 15:43:53 GMT
- Article-I.D.: agora.C1D7p6.Bo7
- References: <8267@kielo.uta.fi> <1993Jan22.163533.8577@psg.com>
- Distribution: world
- Organization: a gora
- Lines: 13
-
- In article <1993Jan22.163533.8577@psg.com> randy@psg.com (Randy Bush) writes:
- >> i,j: integer ;
- >> i := i or j ;
- >
- >To do this in Modula-2, one would do something like
- >
- > VAR i, j : INTEGER;
- > i := INTEGER ( BITSET(i) OR BITSET(j) )
-
-
- I think you mean
-
- i := INTEGER(BITSET(i) + BITSET(j))
-