🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3178

Re: Modula2 for C programmers?

#3178
From: "Mark Morgan Lloyd "
Date: Wed, 24 Jan 1996 11:32
21 lines
759 bytes
> A trick used by some programmers is to abuse the concept of
> a record with variants:

Guilty, m'lud!

> This isn't portable,

In mitigation:

(* Module initialisation code. *)

BEGIN
  IF SIZE(BITSET) <> SIZE(CARDINAL) THEN
    error(255)
  END;
  
Mark Morgan Lloyd
mark_tbu@cix.compulink.co.uk

[Opinions above are the author's, not those of his employers or 
colleagues]
Technical Details
Message-ID: <DLoo1r.E3u@cix.compulink.co.uk>
Path: arc1-ca.pugleaf.net!cix.compulink.co.uk!usenet
References: <4e3t1f$d5q@seagoon.newcastle.edu.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2
Path: arc1-ca.pugleaf.net!cix.compulink.co.uk!usenet
From: mark_tbu@cix.compulink.co.uk ("Mark Morgan Lloyd ")
Subject: Re: Modula2 for C programmers?
Message-ID: <DLoo1r.E3u@cix.compulink.co.uk>
Organization: KDG Mobrey Telemetry
References: <4e3t1f$d5q@seagoon.newcastle.edu.au>
Date: Wed, 24 Jan 1996 11:32:14 GMT
X-News-Software: Ameol