Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

class::whitehole(3) [suse man page]

Class::WhiteHole(3)					User Contributed Perl Documentation				       Class::WhiteHole(3)

NAME
Class::WhiteHole - base class to treat unhandled method calls as errors SYNOPSIS
package Bar; # DBI inherits from DynaLoader which inherits from AutoLoader # Bar wants to avoid this accidental inheritance of AutoLoader. use base qw(Class::WhiteHole DBI); DESCRIPTION
Its possible to accidentally inherit an AUTOLOAD method. Often this will happen if a class somewhere in the chain uses AutoLoader or defines one of their own. This can lead to confusing error messages when method lookups fail. Sometimes you want to avoid this accidental inheritance. In that case, inherit from Class::WhiteHole. All unhandled methods will produce normal Perl error messages. BUGS &; CAVEATS Be sure to have Class::WhiteHole before the class from which you're inheriting AUTOLOAD in the ISA. Usually you'll want Class::WhiteHole to come first. If your class inherits autoloaded routines this class may cause them to stop working. Choose wisely before using. White holes are only a hypothesis and may not really exist. COPYRIGHT
Copyright 2000 Michael G Schwern <schwern@pobox.com> all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
Michael G Schwern <schwern@pobox.com> SEE ALSO
Class::BlackHole perl v5.12.1 2003-05-28 Class::WhiteHole(3)

Check Out this Related Man Page

Class::Accessor::Fast(3)				User Contributed Perl Documentation				  Class::Accessor::Fast(3)

NAME
Class::Accessor::Fast - Faster, but less expandable, accessors SYNOPSIS
package Foo; use base qw(Class::Accessor::Fast); # The rest is the same as Class::Accessor but without set() and get(). DESCRIPTION
This is a faster but less expandable version of Class::Accessor. Class::Accessor's generated accessors require two method calls to accompish their task (one for the accessor, another for get() or set()). Class::Accessor::Fast eliminates calling set()/get() and does the access itself, resulting in a somewhat faster accessor. The downside is that you can't easily alter the behavior of your accessors, nor can your subclasses. Of course, should you need this later, you can always swap out Class::Accessor::Fast for Class::Accessor. Read the documentation for Class::Accessor for more info. EFFICIENCY
"EFFICIENCY" in Class::Accessor for an efficiency comparison. AUTHORS
Copyright 2007 Marty Pauley <marty+perl@kasei.com> This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License. ORIGINAL AUTHOR Michael G Schwern <schwern@pobox.com> SEE ALSO
Class::Accessor perl v5.16.2 2009-09-15 Class::Accessor::Fast(3)
Man Page

3 More Discussions You Might Find Interesting

1. Programming

Difference in multiple inheritance and multilevel inheritance: same method name ambiguity problem

Hi, In multi-level inheritance: class A { public: void fun() { cout << "A" << endl; } }; class B : public A { public: void fun() { cout << "A" << endl; } }; class C : public B { }; int main() { C c; c.fun(); // Ans: A } (1 Reply)
Discussion started by: royalibrahim
1 Replies

2. Red Hat

NetworkManager unhandled exception

When I try to save the configuration for the wireless settings of RHEL 5.9 Network Manager it throws an unhandled exception with the following detail. Component: system-config-network Version: 1.3.99.21 Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no... (4 Replies)
Discussion started by: cooltoad
4 Replies

3. Programming

C++ : Base class member function not accessible from derived class

Hello All, I am a learner in C++. I was testing my inheritance knowledge with following piece of code. #include <iostream> using namespace std; class base { public : void display() { cout << "In base display()" << endl; } void display(int k) {... (2 Replies)
Discussion started by: anand.shah
2 Replies