On 26-Jul-2004 sungo wrote:
> On (07/25 16:56), David Davis wrote:
>
>> -call conventions (use hashrefs instead of arrays?)
>
> are you talking about the insides of a component object? if so, don't
> meddle there.
I was the one that brought this up. What I meant was, given that I've
created component called POE::Component::Foo, how do I access it. I can
think of many ways :
$kernel->post('POE::Component::Foo', 'honk', ...);
POE::Component::Foo->honk(....);
(To much typing of "POE::Component::", imho)
Now imagine :
POE::Component::Foo->spawn(Alias=>'FooBar', Package=>'Zipper', ....);
$kernel->post(FooBar=>'honk', ....);
Zipper->honk(....);
Now, if the component isn't a singleton :
my $zipper=POE::Component::Foo->spawn(Alias=>'Foo00', ....);
$kernel->post(Foo00=>'honk', ....);
$zipper->honk(....);
Standardized parameter passing would also be a boon : it would simplify
life for IKC.
-Philip