Re: Sharing instances of objects between packages

2004-01-05 Thread drieux
On Jan 5, 2004, at 12:44 PM, Shawn McKinley wrote: Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child? Is there a way to inherit the parent object? Example b

Re: Sharing instances of objects between packages

2004-01-05 Thread James Edward Gray II
On Jan 5, 2004, at 2:44 PM, Shawn McKinley wrote: Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child? Is there a way to inherit the parent object? Example be

Re: Sharing instances of objects between packages

2004-01-05 Thread drieux
On Jan 5, 2004, at 2:51 PM, James Edward Gray II wrote: On Jan 5, 2004, at 2:44 PM, Shawn McKinley wrote: Hello all, I am wondering if you can have object inherited between packages when the child packages have their own object creation without explicitly setting the parent object in the child?

Re: Sharing instances of objects between packages

2004-01-05 Thread James Edward Gray II
On Jan 5, 2004, at 6:30 PM, drieux wrote: On Jan 5, 2004, at 2:51 PM, James Edward Gray II wrote: sub new { my $class = shift; my $self = $class->SUPER::new( @_ }; # call class A constructor --^ oopsie should have been a ")" Good catch. Sorry

Re: Sharing instances of objects between packages

2004-01-05 Thread Randal L. Schwartz
> "Shawn" == Shawn McKinley <[EMAIL PROTECTED]> writes: Shawn> I am wondering if you can have object inherited between Shawn> packages when Objects don't get inherited. Objects inherit methods (subroutines) from other classes (packages). Can you recast your question using terminology tha

RE: Sharing instances of objects between packages

2004-01-05 Thread Shawn McKinley
mailto:[EMAIL PROTECTED] > Sent: Monday, January 05, 2004 7:20 PM > To: drieux > Cc: Perl Beginners Mailing List > Subject: Re: Sharing instances of objects between packages > > > On Jan 5, 2004, at 6:30 PM, drieux wrote: > > > > > On Jan 5, 2004, at 2:51 PM, James

Re: Sharing instances of objects between packages

2004-01-05 Thread R. Joseph Newton
Shawn McKinley wrote: > Hello all, > I am wondering if you can have object inherited between > packages when the child packages have their own object > creation without explicitly setting the parent object in > the child? Is there a way to inherit the parent object? > Example below (sorry for t