From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Odp: char* []={"a",} Date: 30 Jul 2001 20:46:34 GMT Organization: Cornell University Lines: 19 Sender: asu1 AT cornell DOT invalid (on slip-32-102-40-60.ny.us.prserv.net) Message-ID: References: <5BF60CD649EDD411A04600B0D049F53AFFA958 AT hydmail02 DOT hyd DOT wilco-int DOT com> <002201c1184a$593dbf70$6600a8c0 AT mars> <9k21om$flc$6 AT info DOT cyf-kr DOT edu DOT pl> NNTP-Posting-Host: slip-32-102-40-60.ny.us.prserv.net X-Trace: news01.cit.cornell.edu 996525994 9235 32.102.40.60 (30 Jul 2001 20:46:34 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 30 Jul 2001 20:46:34 GMT User-Agent: Xnews/4.06.22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Rafal Maj (Raf256)" wrote in news:9k21om$flc$6 AT info DOT cyf-kr DOT edu DOT pl: >> > > DJGPP allows statment like >> > > const char* arr[]{"aaa","bbb",}; with extra "," at end is't this a >> > > bug ? No. >> hm. Didn't know about this. What will the extra comma do? > > AFAIR it's doing nothing, and using more comas {"aaa","bbb",,} makes > error - so I think that maybe one comma is a bug. > The reason that I have seen cited a few times is that it makes the job of code generators easier. -- -------------------------------- A. Sinan Unur http://www.unur.com/