🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1496

Re: compatibility of types

#1496
From: Karl Heuer
Date: Wed, 11 Jul 1990 21:48
12 lines
995 bytes
In article <1842@tkou02.enet.dec.com> diamond@tkou02.enet.dec.com (diamond@tkovoa) writes:
>int(*)[3] and int(*)[5] also point to integers,

Actually they point to arrays which happen to contain integers, but we'll let
that pass.

>but they are not compatible with each other.  It's a bit too subtle for me to
>figure out if each is compatible with int* or not.

No, but they are each compatible with the pointer-to-incomplete-type int(*)[].

Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint
Technical Details
Message-ID: <17068@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!usc!snorkelwacker!spdcc!ima!haddock!karl
References: <1990Jul11.002522.24178@ccu.umanitoba.ca> <1842@tkou02.enet.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!usc!snorkelwacker!spdcc!ima!haddock!karl
From: karl@haddock.ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: compatibility of types
Message-ID: <17068@haddock.ima.isc.com>
Date: 11 Jul 90 21:48:22 GMT
References: <1990Jul11.002522.24178@ccu.umanitoba.ca> <1842@tkou02.enet.dec.com>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Cambridge, MA 02138-5302
Lines: 12