Path: utzoo!utgpu!watserv1!ria!uwovax!7103_2622 From: 7103_2622@uwovax.uwo.ca (Eric Smith) Newsgroups: comp.os.minix Subject: Re: C SYNTAX QUESTION Message-ID: <5705.2623a214@uwovax.uwo.ca> Date: 12 Apr 90 01:31:00 GMT References: <16304@nigel.udel.EDU> Lines: 22 In article <16304@nigel.udel.EDU>, HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) writes: > test(a) float a; > { > test1(&a); > } > This certainly passes a pointer to a double, and this can't be changed. -- How about implementing this (and other promotions, like char->int) by emitting the same code as for test(_a) double _a; { float a = (float)_a; test1(&a); }? This is the most user-friendly solution (although, it's harder for the compiler writer). -- Eric R. Smith email: Dept. of Mathematics ERSMITH@uwovax.uwo.ca University of Western Ontario ERSMITH@uwovax.bitnet London, Ont. Canada N6A 5B7 ph: (519) 661-3638