Article View: comp.lang.modula2
Article #3208Re: Modula2 for C programmers?
From: Douglas Evan Cook
Date: Mon, 29 Jan 1996 20:49
Date: Mon, 29 Jan 1996 20:49
27 lines
2285 bytes
2285 bytes
On 24 Jan 1996 jguthrie@brokersys.com wrote: > I also take exception to your statement that you hardly ever need to use > such code, and therefore, it must not be important. One of the main > reasons that I stopped using Modula-2 for the stuff I was doing > professionally was the difficulty I had coding CRC routines because I > didn't know about the casts to BITSET. That may be a small use, but it > was vital to what I needed at the time. Hmm... That's too bad. I still swear by Modula II, but I also had to write a CRC routine. I ended up writing one in assembler. It was just as easy as doing it in a high level language, a lot more efficient, and the only problem was that I had to mess with my make file for a while before it linked in correctly. I also wrote a set of AND, OR, XOR, etc. routines, but then I ended up never needing them again in my program. Bitwise operations are usually avoidable, and when they aren't, you have your options. However, now the best option is to get a new version of your compiler. The new Stony Brook compiler (I don't know if it has been released yet - I used a Beta release last summer) has BAND, BOR, and BXOR as compiler extentions. I expect that most other compilers also have extentions (I have heard rumors about them here and there). ============================================================ Douglas Cook, undergraduate in Computer Science at BYU ------------------------------------------------------------ This sentence is false. ============================================================
Technical Details
Message-ID:
<Pine.HPP.3.91.960129134401.8419D-100000@foggy.cs.byu.edu>Path:
arc1-ca.pugleaf.net!foggy.cs.byu.edu!cookdReferences:
<erico-1801961940460001@infinitehell.cnmat.berkeley.edu> <4dqusf$d7k@weck.brokersys.com> <DLIGLJ.FDE@nyongwa.montreal.qc.ca> <4du11j$l31@weck.brokersys.com> <4e3t1f$d5q@seagoon.newcastle.edu.au> <4e5b5u$7s5@weck.brokersys.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!foggy.cs.byu.edu!cookd From: Douglas Evan Cook <cookd@cs.byu.edu> Newsgroups: comp.lang.modula2 Subject: Re: Modula2 for C programmers? Date: Mon, 29 Jan 1996 13:49:24 -0700 Organization: Brigham Young University Message-ID: <Pine.HPP.3.91.960129134401.8419D-100000@foggy.cs.byu.edu> References: <erico-1801961940460001@infinitehell.cnmat.berkeley.edu> <4dqusf$d7k@weck.brokersys.com> <DLIGLJ.FDE@nyongwa.montreal.qc.ca> <4du11j$l31@weck.brokersys.com> <4e3t1f$d5q@seagoon.newcastle.edu.au> <4e5b5u$7s5@weck.brokersys.com> NNTP-Posting-Host: foggy.cs.byu.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <4e5b5u$7s5@weck.brokersys.com>