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 1266 articles. 0 followers. Post Follow

1 Replies
386 Views

Similar Articles

[PageSpeed] 35
"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:
Similar Artilces:

US-TX-Austin: Sr. SoC Design Eng., ASIC design expert, Deep Sub-micron design; P (45322114408)
US-TX-Austin: Sr. SoC Design Eng., ASIC design expert, Deep Sub-micron design; P (45322114408) ============================================================================================== Position: Sr. SoC Design Eng. Reference: SMC01500 Location: Austin TX Duration: Perm Skills: MS in EE or MS in Computer Engineering. 5 to 10 years experience. Must have proven expertise in ASIC design and a firm grasp of all aspects of Deep Sub-micron design flow, including physical design. Scope: ASIC des...

How to Design a web application
Hi,I am new to this group and I have been working on Java .Could anybody plz tell me how to aproch to design a web applicationwith proper architecture andwhat is design patterns.How to use them .Thank you,Sudheendra. sudheendra wrote: > what is design patterns. "Design patterns" is a literal phrase, referring to structures of code, process or analysis that recur in many situations. These patterns are useful in system design. These patterns go by conventional names, though perhaps you have seen them yourself and had a different term for the same idea. One well-known (and of...

US-TX-Austin: Applications Eng., Power Supply design, MCU HW/firmware design; C- (45316257602)
US-TX-Austin: Applications Eng., Power Supply design, MCU HW/firmware design; C- (45316257602) ============================================================================================== Position: Applications Eng. Reference: SMC01628 Location: Austin TX Duration: C-P Skills: Bachelors in Electrical Engineering required, Masters preferred. Hands-on experience in complex power supply design with a strong understanding of supply topologies (e.g. full bridge, half-bridge), their control architectures, lo...

US-TX-Austin: Design Eng., Analog integrated Circuit design, Switched capacitor (45312614409)
US-TX-Austin: Design Eng., Analog integrated Circuit design, Switched capacitor (45312614409) ============================================================================================= Position: Design Eng. Reference: SMC01551 Location: Austin TX Duration: Perm Skills: Requires a MS/PhD preferred in Electrical Engineering and general knowledge of analog integrated circuit design with specific emphasis on high speed amplifiers and D/A or A/D converters. Skills in switched capacitor circuit design at bl...

Why are in class initializers not allowed?
In the C++ Standard - before C++11 - any attempt to initialize a variable inside the body of a class would fail at compilation. I am sure that there is / was a very good reason for this, but can't understand why it is so. I thought that maybe it was a restriction that was imposed due to some form of resource limitation. I am sure that I am wrong. Now C++11 allows in class initializers. This appears to make the class design clearer - or at least much easier to implement for a novice like me as there is no need for a lengthy & possibly erroneous constructor initializer lis...

partially initialized constructor
Hello, I would like fooBar to be initialized to zero in the following scenario where there is not enough memory to complete construction after an object of sizeof(FooBar) has been allocated on the heap. Is the standard way to deal with this situation in plain old standard C++ to use a try catch block in main() and a throw inside the constructor after cleaning up or can anyone suggest alternatives? Thanks, JG class FooBar { public: FooBar(); private: Foo *foo; Bar *bar; } FooBar::FooBar() { foo = new Foo(); // successful bar = new Bar(); // unsuccessful } int main() {...

US-TX-Austin: Senior RF IC Design Engin, high speed circuit design transistor (45357270240)
US-TX-Austin: Senior RF IC Design Engin, high speed circuit design transistor (45357270240) =========================================================================================== Position: Senior RF IC Design Engin Reference: ZYD00147 Location: Austin TX Duration: Skills: Experience in state-of-the-art high speed circuit design transistor level circuit. Hands on measurement experience solving difficult die-level design problems in products that shipped in high volume. MSEE + 5 years (or equivalent) RF I...

US-TX-Austin: AutoCAD Design Tech, 3-5yrs exp drafting, AutoCAD2000 or ver.14; c (45341457608)
US-TX-Austin: AutoCAD Design Tech, 3-5yrs exp drafting, AutoCAD2000 or ver.14; c (45341457608) ============================================================================================== Position: AutoCAD Design Tech Reference: SMC01967 Location: Austin TX Duration: contract Skills: Associates degree in Design, AutoCAD or equilevant 3-5yrs exp in drafting, using document management systems, AutoCAD and computer-aided design software. AutoCAD 2000 or version 14 direct exp. Manual Drafting ...

Trouble designating a default printer
I have an HP4650 and an Epson CX4800. I am using Windows Xp Home. When I try to change the default designation from the HP to the Epson the computer upon closing the control panel reverts to the HP. I can get the Epson to print, but this is aggravating. Any advice would be appreciated. -- Mike "Mike" <mwos@optonline.net> wrote in message news:DrtGf.797$gA6.65@fe10.lga... >I have an HP4650 and an Epson CX4800. I am using Windows Xp Home. When I >try to change the default designation from the HP to the Epson the computer >upon closing the contr...

US-TX-Austin: VLSI Circuit Designer, 5+yrs exp CMOS design, DSP design; DH (45341514401)
US-TX-Austin: VLSI Circuit Designer, 5+yrs exp CMOS design, DSP design; DH (45341514401) ======================================================================================== Position: VLSI Circuit Designer Reference: SMC01756 Location: Austin TX Duration: DH Skills: BSEE (MSEE preferred). 5+yrs exp in CMOS custom circuit design. Microprocessor or DSP design experience. Core skills must include high performance custom circuit design and should include experience in one or more of the fo...

list of class initiations ?
hello, Is there a way to create a hierarchical list of class headers, including the parameters. What I mean (I'm not a programmer) is something like this: <class name and ancestor> <init parameters> class Block ( t_BaseShape ): (self, Pos = [10,10] ): class t_BaseShape(Shape): (self, x=20, y=20, x2=90, y2=90, type='rect' ): class Shape(ShapeEvtHandler): (self, x=[], y=[]): class ShapeEvtHandler: () within 1 file would be enough. thanks, Stef Mientki On Fri, 16 Nov 2007 13:20:59 +0100, stef mientki wrote...

US-TX-Austin: Sr. SoC Design Eng., ASIC design expert, Deep Sub-micron design; P (45317132410)
US-TX-Austin: Sr. SoC Design Eng., ASIC design expert, Deep Sub-micron design; P (45317132410) ============================================================================================== Position: Sr. SoC Design Eng. Reference: SMC01500 Location: Austin TX Duration: Perm Skills: MS in EE or MS in Computer Engineering. 5 to 10 years experience. Must have proven expertise in ASIC design and a firm grasp of all aspects of Deep Sub-micron design flow, including physical design. Scope: ASIC des...

Database design conundrum
I currently have a database table that is getting out of control, it is designed to hold information regarding a paddock and when it was initially setup the information needed for each paddock was identical in nature. Original design of Paddock table: -PaddockID -PaddockName -RegionID -CropID **RegionID and CropID are linked to the Region and Crop tables respectively** But as the system has grown, the number of crops has grown and with this growth the number of variables in the paddock table has grown, as some of the new crops have crop specific variables. Current design of Pad...

US-TX-Austin: RF Mixed Signal Design Eng, Analog design exp., wireless design; C (45315314404)
US-TX-Austin: RF Mixed Signal Design Eng, Analog design exp., wireless design; C (45315314404) ============================================================================================== Position: RF Mixed Signal Design Eng. Reference: SMC01602 Location: Austin TX Duration: C-P Skills: MSEE or MSCE or BSEE plus 5 years of experience. Exp designing mixed-signal integrated circuit design at the transistor level. Strong emphasis on analog design required. Wireless design experience at GHz operating frequ...

US-TX-Austin: RF Mixed Signal Design Eng, Analog design exp., wireless design; C (45319957621)
US-TX-Austin: RF Mixed Signal Design Eng, Analog design exp., wireless design; C (45319957621) ============================================================================================== Position: RF Mixed Signal Design Eng. Reference: SMC01602 Location: Austin TX Duration: C-P Skills: MSEE or MSCE or BSEE plus 5 years of experience. Exp designing mixed-signal integrated circuit design at the transistor level. Strong emphasis on analog design required. Wireless design experience at GHz operating frequencies ...

US-TX-Austin: Solutions Architect/Sales Eng.Design/config/implement SW apps; C-P (45328757605)
US-TX-Austin: Solutions Architect/Sales Eng.Design/config/implement SW apps; C-P (45328757605) ============================================================================================== Position: Solutions Architect/Sales Reference: SMC01698 Location: Austin TX Duration: C-P Skills: BS Degree in Computer Science, MIS, or equivalent combination of education and experience. Exp designing, configuring and implementing custom and packaged enterprise software applications (Java and .NET preferred). ...

TextWrangler (by design) ignores font settings in old files.
Hi. I would like to change all of my TextWrangler files (.txt mostly) to use the font setting I choose in Preferences. TextWrangler saves state, so the font setting is saved when you save a file. Newly created files have my new font setting, but old files I saved previously do not. I open old .txt files and they have my old font setting, ignoring my current Preferences setting. I hate this! How can I globally change the font setting for all .txt files on my disk? (No fear of the Terminal; I am a unix-geek.) Thanks. Roger Carlson In article <1139792580.391761.187630@o13g2000cwo.goog...

Game Design FAQs updated #17
Last posted on newsgroup November 1, 2009 Most recent updates to the FAQs (since the November 1, 2009 posting): 1. Links page - Added some links. 2. FAQ 3 - Added a link and a crosslink. 3. FAQ 58 - Fixed broken links, added information about what to do if you find a broken link. 4. FAQ 65 - Added a link. 5. FAQ 56 - Added important links. 6. FAQ 47 - Added yet more wise sayings by Dr. Laura, and a wonderful bit of "reverse wisdom" by "MadApples." Added an Army Engineers quote, a Derek Bok quote, a Katie Uhlaender quote, a Dr. John quote, a Sai Baba quote, a ...

US-TX-Austin: Sr Analog Design Eng, �IC design, A/D & D, DSP, ADC design (45356532411)
US-TX-Austin: Sr Analog Design Eng, �IC design, A/D & D, DSP, ADC design (45356532411) ======================================================================================= Position: Sr Analog Design Eng Reference: MLS00011 Location: Austin TX Duration: Skills: � Design and develop high-speed mixed-signal ICs for highly integrated products and chip system level solutions. � Analog IC designers will contribute to all aspects of product development including analog architecture determination, algorithm...

Port classes design
Does anyone have any suggestions regarding the design of a series of classes to provide an access framework for serial and parallel ports? After looking fairly extensively at the available class libraries and alternatives I came to the conclusion that the javax.comm hierarchy appeared to have many things going for it. class java.lang.Object o interface javax.comm.CommDriver o class javax.comm.CommPort + class javax.comm.ParallelPort + class javax.comm.SerialPort o class javax.comm.CommPortIdentifier o interface javax.comm.CommPortOwnershipListen...

Separating design from code - help a Perl monger
Hi there, I've recently been dabbling in JSP and servlets after years of hacking Perl *shucks*. What I would like to do it to seperate the design of my webpages i.e. the HTML as much as possible from the code i.e. the java. Now I stand to be corrected but JSP don't seem to be the solution as you end up (well I do) with loadsa code in a page which is then compiled into a servlet anyway - yuk, yuk. Servlets don't seem quite right, though I'd rather use servlets than JSP, as I seem to end up with servlets full of HTML - yuk. In Perl I'd use something like HTML::Template whi...

Design Problem with GUI sub vi
Hello community, in general, I would like to separate the GUI from the data, but I get a problem with this design approach in LabView: I often have sub VIs that are supposed to control something. Therefore, these VIs consist of a control loop. A GUI window should show the regulation process (showing how the tracking error is hopefully approaching zero etc.). As I said, this GUI should be a separate VI (separate from the control loop VI). Since the GUI has to be updated on each sample, it is clear that the GUI VI should be inside the control loop, and therefore, it should be a sub VI of the c...

US-TX-Austin: VLSI Circuit Designer, 5+yrs exp CMOS design, DSP design; DH (45344357604)
US-TX-Austin: VLSI Circuit Designer, 5+yrs exp CMOS design, DSP design; DH (45344357604) ======================================================================================== Position: VLSI Circuit Designer Reference: SMC01756 Location: Austin TX Duration: DH Skills: BSEE (MSEE preferred). 5+yrs exp in CMOS custom circuit design. Microprocessor or DSP design experience. Core skills must include high performance custom circuit design and should include experience in one or more of the fo...

books, font design size, psutils
Greetings! I'm experimenting with converting a plain text Project Gutenberg book into a real printed book using *plain TeX*, some OTF fonts from Adobe and the psutils suite. I'm typsetting the pages full size, but with fonts scaled up by 1.5 times, and then using psresize, pstops, psbook and psnup to produce 2-up signature pages. My question -- in my original, full size pages, do I use the smaller font design sizes and scale them up so that when they're reduced during the production of the pages they're normal size, or do I use the larger font design sizes, which then get sh...

databse design tutorial
--0-261152853-1065418510=:19943 Content-Type: text/plain; charset=us-ascii Hi everybody, i need a free tutorial on database design can any help ?? thx --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-261152853-1065418510=:19943 Content-Type: text/html; charset=us-ascii <DIV>Hi everybody,</DIV> <DIV>&nbsp;</DIV> <DIV>i&nbsp;need a free tutorial on database design can any help ??</DIV> <DIV>&nbsp;</DIV> <DIV>thx</DIV><p><hr SIZE=1...