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

Re: PDD: Conventions and Guidelines for Perl Source Code

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
May 9, 2001 03:41
Subject:
Re: PDD: Conventions and Guidelines for Perl Source Code
Message ID:
200105091040.LAA10752@gizmo.fdgroup.co.uk
> I see nothing about namespacing, e.g. Perl_

<quote>
All entities should be prefixed with the name of the subsystem they appear
in, eg C<pmc_foo()>, C<struct io_bar>. They should be further prefixed
with the word 'perl' if they have external visibility or linkage,
</quote>

eg

perlpmc_foo()
struct perlio_bar
typedef struct perlio_bar Perlio_bar
#define PERLPMC_readonly_TEST ...

ie essentially we are making the subsystem name more verbose. This kind of
matches the way things are currently done in PerlIO.


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