🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5500

Re: New section 3.9.6

#5500
From: Karl Heuer
Date: Thu, 15 Dec 1988 22:00
30 lines
2221 bytes
In article <9114@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>In article <11126@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes:
>>IMHO, The Committee should have made the entire construct `f(int x[])'
>>obsolescent. ...
>
>I think the reason there wasn't sufficient support for that more drastic
>step was that a LOT of correctly-written code exists that uses that notation.

If you mean code that uses the old-style function definition syntax, I agree;
that's why I said it should only apply to prototypes.  This substantially
reduces the amount of code that would be `broken' (and it wouldn't even be
broken, really, if it's flagged as obsolescent but not illegal).

>There are proposals for future addition of array sections etc. to C, but
>it would be premature to adopt them into the standard before there is
>sufficient experience with them.  I expect several vendors to be working
>on this as vendor-supported extensions in the next few years.

I've looked into the possibility of adding array copy% to C, analogous to the
way struct copy was added several years ago.  In general, the lack of array
rvalues is a nuisance but is not fatal; however, the obvious notation for a
by-value array parameter is `f(int a[])' -- and this can't be used, if the
Standard insists that the compiler must silently rewrite it to `f(int *a)'.

It'll be interesting to see what the various vendors use to get around this,
when they try to add such array features.

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
________
% By `copy' I mean assignment, pass by value, and return by value.
Technical Details
Message-ID: <11210@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!necntc!ima!haddock!karl
References: <1988Dec4.161125.20786@sq.uucp> <1988Dec5.220907.6239@utzoo.uucp> <11126@haddock.ima.isc.com> <9114@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!necntc!ima!haddock!karl
From: karl@haddock.ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: New section 3.9.6
Message-ID: <11210@haddock.ima.isc.com>
Date: 15 Dec 88 22:00:25 GMT
References: <1988Dec4.161125.20786@sq.uucp> <1988Dec5.220907.6239@utzoo.uucp> <11126@haddock.ima.isc.com> <9114@smoke.BRL.MIL>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 29