D - static initialization of structs and using ':'
- Matt Gessner (9/9) Aug 16 2001 Greetings...
- Walter (2/11) Aug 18 2001 I just liked the look of the : better.
Greetings... C99 (and gnu for a while) implemented this using '=' not ':'. I.e. struct X { int a; int b; }; static X x = { a = 1, b = 2 }; I don't care for C99's use of the '.' before the field name; D's syntax is much cleaner. Regards, Matt
Aug 16 2001
Matt Gessner wrote in message <3B7C1A1C.2010001 aiinet.com>...Greetings... C99 (and gnu for a while) implemented this using '=' not ':'. I.e. struct X { int a; int b; }; static X x = { a = 1, b = 2 }; I don't care for C99's use of the '.' before the field name; D's syntax is much cleaner. Regards, MattI just liked the look of the : better.
Aug 18 2001