Request for Comments: Aggregate Assignment in C ...

Stephen Clamage steve at taumet.com
Wed Dec 12 02:51:56 AEST 1990


mayer at iuvax.cs.indiana.edu (Mayer Goldberg) writes:

|Pascal programmers who learn C, frequently complain of C's
|lack of a "with" construct. We propose an alternative to
|adding such a keyword, through a natural extention of C's
|aggregate initialization statement.

|[example]
|struct ag {
|  int a, b, c;
|};
|struct ag my_vec = {1, 2, 3};

You could just use C++, which already allows such things via constructors.
-- 

Steve Clamage, TauMetric Corp, steve at taumet.com



More information about the Comp.lang.c mailing list