🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3330

Re: xor procedure for M-2

#3330
From: Peter Moylan
Date: Thu, 29 Feb 1996 23:32
18 lines
1126 bytes
chris (francosky.1@postbox.acs.ohio-state.edu) wrote:

>	if someone could give me a simple way to write a program to
> compute the value
>of xors in modula2 it would be appreciated.\

This sounds like a homework problem, so I won't give a
complete answer; but here are some hints:

Method 1: depending on the compiler you're using, there might
be an xor function in the library.
Method 2: type-casting to BITSET.

--
Peter Moylan                           peter@ee.newcastle.edu.au
                  http://www.eng.newcastle.edu.au/ee/Moylan.html
OS/2 freeware list at 
      http://www.eng.newcastle.edu.au/ee/Moylan/os2/os2info.html
Technical Details
Message-ID: <4h5d35$sjg@seagoon.newcastle.edu.au>
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter
References: <francosky.1.1.3132950B@postbox.acs.ohio-state.edu>

Show Full Headers
Complete Article Headers
From: peter@fourier.newcastle.edu.au (Peter Moylan)
Newsgroups: comp.lang.modula2
Subject: Re: xor procedure for M-2
Date: 29 Feb 1996 23:32:53 GMT
Organization: The University of Newcastle
Message-ID: <4h5d35$sjg@seagoon.newcastle.edu.au>
References: <francosky.1.1.3132950B@postbox.acs.ohio-state.edu>
Reply-To: peter@tesla.newcastle.edu.au
NNTP-Posting-Host: fourier.newcastle.edu.au
X-Newsreader: TIN [version 1.2 PL2]
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter