[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: ellipsis in array initialization
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2007-12-19 12:00:02
Message-ID: 476907C2.8030003 () ludd ! ltu ! se
[Download RAW message or body]

Simon 'corecode' Schubert wrote:
> Anders Magnusson wrote:
>   
>> After a little lookaround I realized that this use has become quite
>> popular :-(  Not that i'm happy
>> about it, but we may be forced to support it :-/  Comments?
>>     
>
> Is there a formal specification what this ellipsis is doing?  I could
> see more uses, like for case statements.  Unless this feature is well
> thought through, it shouldn't be supported in a half-assed way.
>   
Agreed.  AFAIK there are no specifications for it other than the gcc manual.

> Who is supporting it anyways and who is using it?  I've never seen this
> before.  This doesn't seem very useful for programming, but mainly
> syntactic sugar for initializations.  I don't even want to think about
> dynamic array initialization (char foo[n*n] = { a ... a+n*n })
>   
I have seen it in both case statements and initializations where ranges 
are needed.

-- Ragge

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic