Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!mmdf From: MAB01057%UFRJ.BITNET@cornellc.cit.cornell.edu (Marcelo Amarante Ferreira Gomes) Newsgroups: comp.os.minix Subject: Re: C SYNTAX QUESTION Message-ID: <16421@nigel.udel.EDU> Date: 10 Apr 90 21:32:15 GMT Sender: mmdf@udel.EDU Lines: 22 In a previous message, Chistoph van Wuellen writes about problems with the function test(a) float a; { test1(&a); } Since the message is addressed to 'C Sintax experts', I shouldn't be answering to it, but I will anyway :-) I believe that the compiler could (I don't know if it should) try the following: on promoting the 'a' to double, copy it to another area of memory (in the stack, maybe) and pass the pointer to that area. On return, the code should copy the contents in there to the original float variable 'a', wich caused the whole mess. I know this is not a very elegant solution, but I think it solves the problem. I couldn't think of a code fragment in wich this approach would cause any trouble. Can anyone out there think of it? :-) Marcelo A. Ferreira Gomes (Wally Gator)