🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #506

Re: Question about function pointers & prototypes

#506
From: T. William Wells
Date: Mon, 28 Aug 1989 17:44
16 lines
1141 bytes
In article <10835@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes:
: In article <19278@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes:
: >The proposed standard seems (meaning `you should check this yourself')
: >to require that all function pointers `fit' in some other function pointer
: >storage cell.
:
: I don't recall any constraints that would imply this.  Pointers to
: functions are far less "flexible" than object pointers.

One can cast any function pointer to another and back again, and use
the result. I've buried my dpANS so I can't quote chapter and verse
but this was discussed a while ago here.

---
Bill                    { uunet | novavax | ankh | sunvice } !twwells!bill
bill@twwells.com
Technical Details
Message-ID: <1989Aug28.174441.24540@twwells.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!twwells!bill
References: <1611@agora.UUCP> <19278@mimsy.UUCP> <10835@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!twwells!bill
From: bill@twwells.com (T. William Wells)
Newsgroups: comp.std.c
Subject: Re: Question about function pointers & prototypes
Message-ID: <1989Aug28.174441.24540@twwells.com>
Date: 28 Aug 89 17:44:41 GMT
References: <1611@agora.UUCP> <19278@mimsy.UUCP> <10835@smoke.BRL.MIL>
Organization: None, Ft. Lauderdale, FL
Lines: 16