🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3226

Re: call to revolt

#3226
From: Doug Gwyn
Date: Thu, 27 Jun 1991 20:25
12 lines
1055 bytes
In article <4247@ksr.com> jfw@ksr.com (John F. Woods) writes:
>To accomplish exactly what this person thinks is desired requires a union,

I don't know exactly what that person thinks, if anything, but certainly a
union would not solve anything.  It would make things much worse in the
case of an implementation that represents different pointer types
differently.

The simple solution is to use a char* or void* as a "generic pointer" and
deal with the address arithmetic oneself.  This is really quite simple and
doesn't need to be hashed over in this (C standards) newsgroup.  It is not
a standards issue.
Technical Details
Message-ID: <16562@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!cmcl2!adm!smoke!gwyn
References: <992@baby.and.nl> <1991Jun27.002412.10929@tkou02.enet.dec.com> <4247@ksr.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: call to revolt
Message-ID: <16562@smoke.brl.mil>
Date: 27 Jun 91 20:25:53 GMT
References: <992@baby.and.nl> <1991Jun27.002412.10929@tkou02.enet.dec.com> <4247@ksr.com>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 12