🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1720

Re: Parameter Types in Old-Style Function Definitions

#1720
From: Chris Torek
Date: Sat, 15 Sep 1990 13:58
17 lines
1284 bytes
In article <1990Sep15.011126.23112@jarvis.csri.toronto.edu>
hugh@dgp.toronto.edu (D. Hugh Redelmeier) writes:
>The fact that the default argument promotions are implementation
>dependant is quite unfortunate.

Indeed.

Note that this problem would not exist, had X3J11 chosen the correct
(i.e., sign-preserving) extension rules.  As things stand now, you
CANNOT calculate the type of an unsigned expression in a widening
context.  Apparently the committee decided that the value represented
by some bit pattern was more important than the type needed to hold
that value---not minding the fact that without knowing that type, it
is not possible to describe that value!
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 405 2750)
Domain:	chris@cs.umd.edu	Path:	uunet!mimsy!chris
Technical Details
Message-ID: <26564@mimsy.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!haven!mimsy!chris
References: <10391@pt.cs.cmu.edu> <2689@dataio.Data-IO.COM> <1990Sep15.011126.23112@jarvis.csri.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!haven!mimsy!chris
From: chris@mimsy.umd.edu (Chris Torek)
Newsgroups: comp.std.c
Subject: Re: Parameter Types in Old-Style Function Definitions
Keywords: parameter, function
Message-ID: <26564@mimsy.umd.edu>
Date: 15 Sep 90 13:58:01 GMT
References: <10391@pt.cs.cmu.edu> <2689@dataio.Data-IO.COM> <1990Sep15.011126.23112@jarvis.csri.toronto.edu>
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 17