Path: utzoo!utgpu!watmath!watdragon!violet!afscian From: afscian@violet.waterloo.edu (Anthony Scian) Newsgroups: comp.lang.c Subject: Re: return(struct) implementation Message-ID: <12566@watdragon.waterloo.edu> Date: 22 Mar 89 00:56:47 GMT References: <4425@pt.cs.cmu.edu> <11977@haddock.ima.isc.com> <1989Mar18.144546.10605@ziebmef.uucp> Sender: daemon@watdragon.waterloo.edu Reply-To: afscian@violet.waterloo.edu (Anthony Scian) Organization: U. of Waterloo, Ontario Lines: 20 In article <1989Mar18.144546.10605@ziebmef.uucp> mdfreed@ziebmef.UUCP (Mark Freedman) writes: >>Some broken implementations use a static area in the callee and just return >>its address. This mechanism is not reentrant, is forbidden by the pANS, and >>will be considered no further in this article. >> > That implies that 1) the MS-DOS implementations with which I'm familiar >(Turbo-C 2.0, Datalight C 3.05, Lattice C 3.10), and probably several with >which I'm not, are broken 2) the marketeers for these companies have >gotten a bit carried away when claiming dpANS compliance. > Is anyone aware of MS-DOS compilers which implement structure returns >according to dpANS ? Is anyone aware of software companies which intend to >correct the broken implementation ? WATCOM C7.0 is one MS-DOS ANSI C compiler that did it right (with the best optimizer, also). By the way, you forgot to include Microsoft's C compiler in your list of broken compilers (even their OS/2 version!). -- Anthony Scian \\ "Working with roots and twigs, Tom managed afscian@violet.uwaterloo.ca \\ to build a working tractor beam. Then he afscian@violet.waterloo.edu \\ waited ..." - Aarrr Trek: The Wrath of Tom