Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: did old compilers give warning on &struct? Message-ID: <1989Nov13.193548.3327@utzoo.uucp> Organization: U of Toronto Zoology References: <465@siswat.UUCP> <112@bohra.cpg.oz> Date: Mon, 13 Nov 89 19:35:48 GMT In article <112@bohra.cpg.oz> ejp@bohra.cpg.oz (Esmond Pitt) writes: >Before structure name arguments => pass by reference was supported, >structure name arguments were passed _by_value_... Uh, I think you have this backward. Passing a struct to a function is done by value in modern C. Back before this feature was introduced, some compilers would implicitly turn a struct name into a pointer to that struct, as still happens for arrays. Some such compilers did grumble about &array, and may well have done the same about &struct (I don't remember for sure). -- A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology megabyte of flaming. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu