Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!clyde!burl!codas!usfvax2!chips From: chips@usfvax2.UUCP (Chip Salzenberg) Newsgroups: comp.lang.c Subject: Structure constants Message-ID: <843@usfvax2.UUCP> Date: Sat, 26-Sep-87 09:39:21 EDT Article-I.D.: usfvax2.843 Posted: Sat Sep 26 09:39:21 1987 Date-Received: Sun, 27-Sep-87 11:56:06 EDT Organization: AT Engineering, Tampa, FL Lines: 31 About a year ago, I took an advanced C course conducted by Thom Plum. While I had his ear, I suggested that X3J11 include structure constants in the draft standard: typedef struct { double r, i; } COMPLEX; extern COMPLEX get_complex(), add_complex(); main() { COMPLEX a, b; a = get_complex_from_somewhere(); /* Note the second parameter to this function call: */ b = add_complex(a, (COMPLEX){1.0, 1.0} ); } Any thoughts from netlanders? (Note that no new error messages are necessary, since most of the same work is done in inititialization of auto aggregates, which is already in the draft.) Anyone moved? Feel free to lobby X3J11... :-) P.S. Don't bother posting "C++ can do that" articles; this isn't comp.lang.c++. -- Chip Salzenberg "chip%ateng@UU.NET" or "uunet!ateng!chip" A.T. Engineering, Tampa CIS: 73717,366 Last Chance: "chips@usfvax2.UUCP" "Use the Source, Luke!" My opinions do not necessarily agree with anything.