Article View: comp.lang.modula2
Article #3536Re: Modula-2 standard
From: Bill Stackhouse
Date: Fri, 05 Dec 1986 21:21
Date: Fri, 05 Dec 1986 21:21
29 lines
1406 bytes
1406 bytes
A comment about problem #4 which had to do with a 16 bit word which has a 6 bit integer between a bunch of 1 bit fields. Why not solve it with the Pascal approach of a packed structured record? x = packed record of b1, b2, b3, b4 : boolean; i : 0..63; b5, b6, b7, b8, b9, b10 : boolean; end; The syntax is loose but the key is that a compiler can detect the intent that everything should fit into one word. You might want a shift function but not to solve the given example. Something I would like to see in all procedure based languages is some syntax in the procedure def. that indicates that the procedure is to be included inline at all places it is called. That would allow the abstraction to still occur but would do away with the overhead of calling and returning just for a few lines of code. -- Bill Stackhouse Cambridge, MA. bills@cca.cca.com
Technical Details
Message-ID:
<11458@cca.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!mit-eddie!genrad!decvax!ima!mirror!cca!billsShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!mit-eddie!genrad!decvax!ima!mirror!cca!bills From: bills@cca.UUCP (Bill Stackhouse) Newsgroups: comp.lang.modula2 Subject: Re: Modula-2 standard Message-ID: <11458@cca.UUCP> Date: Fri, 5-Dec-86 16:21:46 EST Article-I.D.: cca.11458 Posted: Fri Dec 5 16:21:46 1986 Date-Received: Sat, 6-Dec-86 18:03:34 EST Reply-To: bills@cca.UUCP (Bill Stackhouse) Organization: Computer Corp. of America, Cambridge Lines: 29