Thread View: mod.std.c
1 messages
1 total messages
Started by The Moderator
Sun, 04 Nov 1984 18:16
Standard C Digest - V1 #2
Author: The Moderator
Date: Sun, 04 Nov 1984 18:16
Date: Sun, 04 Nov 1984 18:16
80 lines
3891 bytes
3891 bytes
Mail your ideas and replies to the author(s) below or to cbosgd!std-c.
Cbosgd is reachable via most of the USENET nodes, including ihnp4,
ucbvax, decvax, hou3c.... Administrivia should be mailed to
cbosgd!std-c-request.
**************** mod.std.c Vol. 1 No. 2 11/4/84 ********************
Today's Topic:
Comments on the addition of aggregate constants to C... (2)
----------------------------------------------------------------------
Date: Fri, 2 Nov 84 23:59:34 -0100
From: mcvax!guido (Guido van Rossum)
Subject: Re: aggregate constants
In article <464@homxa.UUCP> hpdsa!decot (Dave Decot) proposes to add
aggregates to the language. My opinion: might be a good idea, but...
It is very unorthogonal that aggregates must contain only constants.
The old rule is:
static: auto:
can be
initiated with: constant expr any expression
and with: constant aggregate ---
I think that the empty space should be filled, if at all, with
"any aggregate", and not with "constant aggregate". After all,
the ambiguities that are caused because braces are used both for
compound statements and for aggregates, could hardly become worse
when aggregates are allowed to contain variable expressions.
The semantics cannot be a problem either. The order of evaluation
can be left unspecified (as with argument lists and operands of
binary and ternary operators).
> Even if the type is 'pointer to char', the string pointed to by
> that part of the initial value is the same each time it is executed,
> and is not affected by changes to previous instances of the string.
> ... [implementation proposal] ...
This makes only sense if the same requirement is made for the use
of constant strings in general. I prefer having all strings read-only,
which is in accordance with decent usage and fair expectation.
--
Guido van Rossum, "Stamp Out BASIC" Committee, CWI, Amsterdam
guido@mcvax.UUCP
"The number of arguments is important unless some of them are correct."
----------------------------------------------------------------------
Date: 4 Nov 84 00:49:58 CST (Sun)
From: utzoo!henry
Subject: Re: Array proposals
References: <464@homxa.UUCP>
> Proposal to add aggregate constants to C. Proposals to add array lvalues,
> assignment, comparison, parameters, and return values to C.
> ...
Has any of this been implemented anywhere? With what results? What were
the problems (both for the implementor and the customers)? How much use
was made of the features? Did it break any existing programs? Did it
result in significant improvements in efficiency or readability in a
significant number of programs?
If the answer to the first question is "no", then why is this being
suggested as part of the standardization of an existing language?
"The only way to truly understand a
feature is to implement it."
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!henry
--------------------------------------
End of Vol. 1, No. 2. Std-C (Nov. 4, 1984 07:00:00)
--
Orlando Sotomayor-Diaz/AT&T Bell Laboratories/201-870-7249
/Crawfords Crnr. Rd., Holmdel WB 3D109, NJ, 07733
UUCP: {ihnp4, houxm, akgua, mhuxd, ...}!homxa!osd7
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads