Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!cuae2!killer!academ!uhnix1!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: possible structure initialization bug Message-ID: <507@sugar.UUCP> Date: Sat, 15-Aug-87 23:53:07 EDT Article-I.D.: sugar.507 Posted: Sat Aug 15 23:53:07 1987 Date-Received: Thu, 20-Aug-87 06:29:01 EDT References: <352@mcdsun.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 20 Summary: I seem to remember Ritchie's compiler did this... int x[2][2] = { 1, 2, 3, 4 }; I believe Ritchie's compiler (and other old 'C' compilers) treated nested parentheses in aggregate initialisations as informative only, to be used when ambiguities were found or subelements weren't fully initialised. For example: int x[2][2] = { 1, 2 } == { {1, 2}, {0, 0} }; 1 2 0 0 int x[2][2] = { {1}, {2} } == { {1, 0} {2, 0} }; 1 0 2 0 -- -- Peter da Silva `-_-' ...!seismo!soma!uhnix1!sugar!peter (I said, NO PHOTOS!)