delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/30/17:00:47

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
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: <Xns90EEAAA8971A8ASINANUNUR@132.236.56.8>
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)" <raf256 AT go2 DOT pl> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019