f



designated initializers

Hello,

I read that in C99, you can use designated initializers:

--------8<-----------------------------
typedef struct{
    int a,b;
}my_struct;

my_struct My_Struct={.a=10,.b=20};
-------->8-----------------------------

Thus lcc is C99 conform, I get a "compiler trap" trying to use this.

Regards,
Andreas



0
Andi
7/10/2003 5:35:06 AM
comp.compilers.lcc 1276 articles. 0 followers. Post Follow

1 Replies
511 Views

Similar Articles

[PageSpeed] 53

"Andi.Martin" <Andi.Martin@freenet.de> wrote in message
news:beitsm$v5v$05$1@news.t-online.com...
> Hello,
>
> I read that in C99, you can use designated initializers:
>
> --------8<-----------------------------
> typedef struct{
>     int a,b;
> }my_struct;
>
> my_struct My_Struct={.a=10,.b=20};
> -------->8-----------------------------
>
> Thus lcc is C99 conform, I get a "compiler trap" trying to use this.

LCC_Win32 is not completely C99 conforming, yet. I'm sure Jacob is working
on C99 conformance though.

John


0
John
7/10/2003 6:04:38 AM
Reply: