At 12:16 AM 4/13/2001 +0200, Kai Henningsen wrote:
>[EMAIL PROTECTED] (Dan Sugalski) wrote on 11.04.01 in
><[EMAIL PROTECTED]>:
>
> > *) 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.
Yeah, well, we'll just have to write ANSI C instead. :-P More seriously, if
we want to be cautious we could double the underscore for private data
instead. Or make it a configure option for folks that like mysterious error
messages...
>As for PL_, that is indeed already in use (I knew I had seen it
>somewhere!).
Yep. We use it in perl 5. :)
>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?
I think Perl_ and maybe Perl__ would be fine. I'd rather Perl_ and _Perl_,
but...
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk