ANSI C idea: structure literals (and short constants)

Dave Decot decot at hpisod2.HP.COM
Sat Mar 5 12:21:06 AEST 1988


> There is also a more general problem.  To approximate the probable response
> of X3J11:  "Need not convincingly shown; existing constructs can be used to
> same effect; lack of implementation experience in C."

Aggregate constants are needed for data abstraction.

The problem of deciding what their type is solved for now (and possibly
always) by stating in the standard that such syntax has no inherent type
and must be cast or assigned to the desired type.

Dave Decot
hpda!decot



More information about the Comp.lang.c mailing list