...
DCL31-EX0: This rule does not apply to object methods. Object methods are easy for the parser to distinguish from built-in functions or keywords because of their distinct syntax.
Related Guidelines
CERT C Secure Coding Standard | DCL37-C. Do not declare or define a reserved identifier |
---|---|
CERT C++ Secure Coding Standard | DCL32-CPP. Do not declare or define a reserved identifier |
Risk Assessment
Using reserved keywords can lead to unexpected program behavior and surprising results.
...
Tool | Diagnostic |
---|---|
Perl::Critic | Subroutines::ProhibitBuiltinHomonyms |
Related Guidelines
CERT C Secure Coding Standard | DCL37-C. Do not declare or define a reserved identifier |
---|---|
CERT C++ Secure Coding Standard | DCL32-CPP. Do not declare or define a reserved identifier |
Bibliography
[Conway 2005] | "Homonyms," p. 177 |
[CPAN] | Elliot Shank, Perl-Critic-1.116 Subroutines::ProhibitBuiltinHomonyms |
[Wall 2011] | perlfunc, perlsyn |
...