🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2506

Re: Modula-2, Modula-3, C or C++

#2506
From: John McMonagle
Date: Sat, 16 Sep 1995 16:40
30 lines
1865 bytes
In <BLUME.95Sep15102347@dynamic.cs.princeton.edu>, blume@dynamic.cs.princeton.edu (Matthias Blume) writes:
>In article <43bdus$l2g@nntp.nta.no> ohk@hal.nta.no (Ole-Hjalmar Kristensen TF.E/DELAB) writes:
>
>   What worries me is that there does not seem to be a clean way to ensure that a
>   record has a specific *physical* layout. If it is to be used for systems
>   programming, I think this is an important feature, because there is often a need
>   to interface to devices which expect to use a fixed data format.
>
>If you had read the C standard or any of the more popular documents
>describing it then you would know that neither C nor C++ give you such
>a guarantee either.
>
>--
>-Matthias

I see no way a language can guarantee a specific layout for a record. In some architectures
there are different byte ordering and some do not have bytes at least in the normal sense.

As a practical matter I have never had a problem producing a specific format when needed.
I see no problems for system programming. Compilers for systems with unusual architecture
almost have to have extensions to deal with special problems no matter what the language is.

John McMonagle
PMI
PO Box 8402
Green Bay WI 54311
414-468-6040
414-465-0464 FAX
414-465-1656 BBS
http://www.dct.com/~johnm
Technical Details
Message-ID: <43eulq$hg0@online.dct.com>
Path: arc1-ca.pugleaf.net!online.dct.com!usenet
References: <438nkr$bd@classic.eng.octel.com> <4395o4$3mv2@news-s01.ny.us.ibm.net> <BLUME.95Sep15102347@dynamic.cs.princeton.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!online.dct.com!usenet
From: johnm@online.dct.com  (John McMonagle)
Newsgroups: comp.lang.modula2,comp.lang.modula3,comp.lang.c,comp.lang.c++
Subject: Re: Modula-2, Modula-3, C or C++
Date: 16 Sep 1995 16:40:26 GMT
Organization: Green Bay Online
Message-ID: <43eulq$hg0@online.dct.com>
References: <438nkr$bd@classic.eng.octel.com> <4395o4$3mv2@news-s01.ny.us.ibm.net> <BLUME.95Sep15102347@dynamic.cs.princeton.edu>
Reply-To: johnm@online.dct.com  (John McMonagle)
NNTP-Posting-Host: 204.29.185.105
X-Newsreader: IBM NewsReader/2 v1.2