gEDA-dev: C question

Evan Lavelle sa212+geda at cyconix.com
Thu Feb 22 05:13:06 EST 2007


al davis wrote:

>> This is only useful for out-of-order intialisation, so it's
>> not relevant here anyway.
> 
> Actually, for large projects it helps a lot.  

Ok, I give up. Perhaps I should have said 'required' rather than 
'useful'. I write a lot of VHDL, and I use named association much more 
frequently than positional association (ie. the same thing). I don't do 
this in C/C++, because it's not in C++; it won't compile on a C++ compiler.

> NGspice also uses // comments, which are not in standard C.  I 
> would not be surprised if it requires gcc to compile.

Also new in C99. I think pretty much everybody supports C99, so I'd go 
for it (and '//' comments were also commonly supported long before C99). 
C99 also has various major improvements on C89/C94 but, IMHO, you need 
to be careful that you don't use anything that's not also in C++. And, 
again IMHO, C++ is vastly more usable than any C.

:)

Evan


More information about the geda-dev mailing list