Path: 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 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 , "Please don't send me any more of yer scandalous email, Mr. Salzenberg..." -- Bruce Becker