🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2408

Re: pascal code to modula

#2408
From: Randy Bush
Date: Fri, 22 Jan 1993 16:35
18 lines
814 bytes
csfraw@vehka.cs.uta.fi (Francis Akoto) writes:
> This is a pascal code
>    i,j: integer ;
>    i := i or j ;

That most certainly is *not* Pascal code.

If you are trying to achieve a bitwise inclusive OR of the two integers, then
you would have to go through tagless variant records in a dirty hack.

To do this in Modula-2, one would do something like

    VAR i, j : INTEGER;
    i := INTEGER ( BITSET(i) OR BITSET(j) )

randy
-- 
randy@psg.com   ...!uunet!m2xenix!randy
Technical Details
Message-ID: <1993Jan22.163533.8577@psg.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!randy
References: <8267@kielo.uta.fi>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!randy
From: randy@psg.com (Randy Bush)
Subject: Re: pascal code to modula
Message-ID: <1993Jan22.163533.8577@psg.com>
Organization: Pacific Systems Group, Portland Oregon, US
References: <8267@kielo.uta.fi>
Date: Fri, 22 Jan 1993 16:35:33 GMT
Lines: 18