develooper Front page | perl.perl6.internals | Postings from April 2001

Re: Perl_foo() vs foo() etc

Thread Previous | Thread Next
From:
kaih
Date:
April 12, 2001 15:15
Subject:
Re: Perl_foo() vs foo() etc
Message ID:
7zli38HXw-B@khms.westfalen.de
dan@sidhe.org (Dan Sugalski)  wrote on 11.04.01 in <5.0.2.1.0.20010411094111.019e2790@24.8.96.48>:

> *) All private routines have #defines to give them a _Perl_ prefix
> *) All private data have #defines to give them a _PL_ prefix

IIRC, ISO C says you cannot have /^_[A-Z_][A-Za-z_0-9]*$/. That's reserved  
for the standard.

As for PL_, that is indeed already in use (I knew I had seen it  
somewhere!).

A grep over my /usr/include finds it in, oh, nspr/pl*.h, oskit/freebsd/sys/ 
resourcevar.h, plplot*.h, canna/RK.h ... seems *several* groups of other  
people liked it.

Perl_ is probably fine, though. One in four, not bad ;-)

Back to the drawing board?

MfG Kai

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