SigC - Perl extension which wraps the libsigc++ signal library
use SigC;$foo = sub {return shift;};$signal = new SigC::Signal();$connection = $signal->connect($foo);$signal->emit(1, 2); # calls $foo, returns a list containing 1disconnect $connection;$signal->emit(3, 4, 5); # doesn't call $foo, returns an empty list
While this module can be used alone to provide signals, its primary use is to make it easier to write modules around C++ code that uses libsigc++. The signals provided by these other modules may have restrictions on the kinds of values they may be called with or return.
EXPORT None by default. Ron Steinke, <[email protected]> perl. Copyright 2002, Ron Steinke. All Rights Reserved. This program is free software. You may copy or redistribute it under the same terms as Perl itself.