develooper Front page | perl.perl5.porters | Postings from December 2001

Re: [PATCH] from the non-ANSI comment police (was: it won't compile on win32)

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
December 29, 2001 18:15
Subject:
Re: [PATCH] from the non-ANSI comment police (was: it won't compile on win32)
Message ID:
200112300215.fBU2F1H22404@smtp3.ActiveState.com
On Sat, 29 Dec 2001 23:37:51 +0200, Jarkko Hietaniemi wrote:
>> Patch looks harmless as C++ has /* */ too.
>> 
>> ..../win32/...
>> are not needed as all Win32 compilers have to handle // as a comment
>
>Yes, but having // in the code teaches bad habits.

For C code, yes.  For C++ code, no.  (win32/vmem.h and most of
win32/perlhost.h are C++.)

>> 'cos MS's headers do that. vmem.h et. al. are also only compiled 
>> as C++ 


Sarathy
gsar@ActiveState.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About