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:
Jarkko Hietaniemi
Date:
December 29, 2001 18:19
Subject:
Re: [PATCH] from the non-ANSI comment police (was: it won't compile on win32)
Message ID:
20011230041922.D31903@alpha.hut.fi
On Sat, Dec 29, 2001 at 06:15:01PM -0800, Gurusamy Sarathy wrote:
> 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++.)

Since it's okay to define say, class constructors on C++ it's okay to
use them in C, too? :-)  But I see your point.

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

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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