[Harbour] 2007-10-26 03:46 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

Przemyslaw Czerpak druzus at acn.waw.pl
Fri Nov 2 18:33:26 GMT 2007


On Fri, 02 Nov 2007, Mindaugas Kavaliauskas wrote:
> >2007-10-26 03:46 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
> >    * cleanup errors in strict ANSI C compilation
> Hi,
> I see you've changed //...  comments to /* ... */ comments. Is this 
> required to ANSI C?

Yes.

> I usually prefer // style, because in this case you can put a big part 
> of code containing a lot of // comments into /* */ style comments. It's 
> very useful during development and testing. But if this is bad for ANSI 
> C, then it's better to say on developers list and agree to not use it.

Because /* */ comments cannot be nested by definition then for such
multiline commenting I prefer to use:

  #if 0
     ...
  #endif

and I do not have to worry about internal #if 0 / #endif what seems
to be better and more flexible solution (at least for me) then mixed
ANSI and C++ comments.

best regards,
Przemek


More information about the Harbour mailing list