Class::Virtually::Abstract(3pm) User Contributed Perl Documentation Class::Virtually::Abstract(3pm)NAME
Class::Virtually::Abstract - Compile-time enforcement of Class::Virtual
SYNOPSIS
package My::Virtual::Idaho;
use base qw(Class::Virtually::Abstract);
__PACKAGE__->virtual_methods(qw(new foo bar this that));
package My::Private::Idaho;
use base qw(My::Virtual::Idaho);
sub new { ... }
sub foo { ... }
sub bar { ... }
sub this { ... }
# oops, forgot to implement that()!! Whatever will happen?!
# Meanwhile, in another piece of code!
# KA-BLAM! My::Private::Idaho fails to compile because it didn't
# fully implement My::Virtual::Idaho.
use My::Private::Idaho;
DESCRIPTION
This subclass of Class::Virtual provides compile-time enforcement. That means subclasses of your virtual class are required to implement
all virtual methods or else it will not compile.
BUGS and CAVEATS
Because this relies on import() it is important that your classes are used instead of required. This is a problem, and I'm trying to
figure a way around it.
Also, if a subclass defines its own import() routine (I've done it) Class::Virtually::Abstract's compile-time checking is defeated.
Got to think of a better way to do this besides import().
AUTHOR
Original idea and code from Ben Tilly's AbstractClass http://www.perlmonks.org/index.pl?node_id=44300&lastnode_id=45341
Embraced and Extended by Michael G Schwern <schwern@pobox.com>
SEE ALSO
Class::Virtual
perl v5.10.1 2007-10-23 Class::Virtually::Abstract(3pm)
Check Out this Related Man Page
Class::WhiteHole(3pm) User Contributed Perl Documentation Class::WhiteHole(3pm)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.10.0 2003-05-28 Class::WhiteHole(3pm)
I am currently going through the servers in our network and trying to compile a list of the current aliases for each box and any virtual IP addresses. I can check for the ones that are supposed to be there but how do I list the ones that I don't even know exist?
ANY help would be greatly... (1 Reply)
This is actually my second attempt at installing Linuix on my mechine. Instead of wiping my HD (big mistake), I thought I would give the LiveCD option a try.
I was able to boot Virtual Linux under option 2 (the "happy" mode that doesn't freeze while loading) normally... until I got to the login... (2 Replies)
Dear All
I have a program writen in C and test in Unix. Now, I am try to run this program in windows 2000. I am receiving an error ]_getopt is not define. I will appreciate if any one can help explain to me why this problem is hapening and to slove this problem.
Thank you (9 Replies)
My code is at:
http://rafb.net/p/E82U3C73.html
It is a concept sample. I desperately tried to compile it with g++. To my surprise (in vmplayer/ win2k) vc++6 succeeds to compile it.
I'm in very doubt. I used RedHat WS 4 , g++-3.4 and Debian Etch, g++-4.1
Comment this please!!
mihai (4 Replies)
Hi,
I need a command which will tell me definitely if a particular Linux System is Virtual (Guest) or Physical. Is there a command for this? Command will be preferable over any Script.
Thanks,
Vineet (3 Replies)
Hi all,
I was compiling my glibc 2.6.1 source files on a new kernel 2.66.22.6 and it seems that i am running into issues with the Virtual Memory. It displays the error message:
virtual memory exhausted: Cannot allocate memory
I saw an article on how to adjust the parameters but i can't... (5 Replies)
Do we have any Virtual Data Center software as we have Virtual Machine?
I want to practice everything of Solaris practically but i don't have resources like data center which includes Servers, Data storages, switches, and other things. (2 Replies)
Hi,
I have installed VirtualBox, downloaded CentOS 5.5 and created a VirtualMachine where i have installed the 'server' versión of CentOS 5.5
As I installed Virtual Box a new network device appeared '192.16.1.250' in my 'real' machine. I was unable to reach my webserver so i istalled CentOS once... (5 Replies)
I am receiving an LCD display code of 0518 when trying to re-install the Virtual I/O server (VIOS) from a DVD on a Power 750 system, model 8233-E8B.
It is stuck on the "Welcome To The Virtual I/O Server boot image timestamp" screen.
Here is some background:
I had successfully installed the... (8 Replies)
Hi,
I'm new, here, and I'm searching for a simple solution for a simple problem.
I'm working on RedHat 4.4.6-4 through a CentOS Virtual Machine and due to some reasons I must compile my C++ codes with these two different g++ versions: 4.4.6 and 4.2.2.
The fact is that I should be able to... (4 Replies)
Hi,
I just successfully build a Virtual Machine in virtual box with Perfectly running HMC v7. I have a IBM eServer pSeries Model 630 Model 6C4 (Power 4) i.e. 7024-6C4. I am not able to have it connect to the HMC console on the Virtual Box.
Can anyone help me on how to connect it to the... (8 Replies)
Hi
I'm trying to compile my linux kernel with CONFIG_SECURITY_CAPABILITIES=y.
any idea what this thing does ??
Also another question , If I compile the kernel that I'm currently using , what'll happen ?
~cheers (3 Replies)