Article View: comp.std.c++
Article #774Re: parameter type matching
From: Chip Salzenberg
Date: Tue, 01 Jan 1991 14:46
Date: Tue, 01 Jan 1991 14:46
16 lines
1207 bytes
1207 bytes
According to xanthian@zorch.SF-Bay.ORG (Kent Paul Dolan): > oftype(x) *bsearch(const any (*x)[], const oftype(x) *, > unsigned, unsigned, > int(*)(const oftype(x) *, const oftype(x) *)); This kind of function declaration will never be useful unless either (1) implementations are required to make all pointers the same size -- an unreasonable requirement for word-addressed machines -- or (2) functions so declared, including the comparison function, are actually defined to use |void *| in place of all the pointers to oftype(foo). By the way, the first parameter must surely be "const any *x". -- Chip Salzenberg at Teltronics/TCT <chip@tct.uucp>, <uunet!pdn!tct!chip> "Please don't send me any more of yer scandalous email, Mr. Salzenberg..." -- Bruce Becker
Technical Details
Message-ID:
<2780A0CD.5D26@tct.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!uunet!pdn!tscs!tct!chipReferences:
<9012310654.AA03555@decpa.pa.dec.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.std.c++ Subject: Re: parameter type matching Message-ID: <2780A0CD.5D26@tct.uucp> Date: 1 Jan 91 14:46:37 GMT References: <9012310654.AA03555@decpa.pa.dec.com> Organization: Teltronics/TCT, Sarasota, FL Lines: 16