RE: Perl OO Question: subclass using parent object's methods, not overridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
age- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 11:37 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Perl OO Question: subclass using parent object's > methods, not ove rridden methods? > > > > -O

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread JamesTillman
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 11:28 AM > To: Tillman, James; Thomas, Mark - BLS CTR; > [EMAIL PROTECTED] > Subject: RE: Perl OO Question: subclass using parent object's methods, &g

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
> I think, perhaps, a little better description of > what you're > trying to accomplish with all this OOP might help others give > you better > advice. Maybe a high-level description of what's desired and > what made you try OO in the first place? OK, let me back up a little and give you some

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread JamesTillman
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 10:42 AM > To: Tillman, James; Thomas, Mark - BLS CTR; > [EMAIL PROTECTED] > Subject: RE: Perl OO Question: subclass using parent object's methods, &g

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
> It's necessary because by calling "bless" you are doing what > should have > been done in the missing object constructor I mentioned > above. You are > taking the reference and placing it in a different namespace (the > My::Table::HTML namespace). Once you've done that, calls to > the object

RE: Perl OO Question: subclass using parent object's methods, not overridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
as, Mark - BLS CTR > Cc: 'Tobias Hoellrich'; [EMAIL PROTECTED] > Subject: Re: Perl OO Question: subclass using parent object's > methods, not overridden methods? > > > On 4/3/2003 4:15 PM, Thomas, Mark - BLS CTR wrote: > >>Huh? Question is: how do you

RE: Perl OO Question: subclass using parent object's methods, not overridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
> At 04:15 PM 4/3/2003 -0500, Thomas, Mark - BLS CTR wrote: > >So my question boils down to this: Can I override methods > that act on > >the superclass' object, without having to instantiate a new object? > > And my question in response: Didn't my attached code accomplish that? Your code insta

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread JamesTillman
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 3:01 PM > To: [EMAIL PROTECTED] > Subject: Perl OO Question: subclass using parent object's methods, not > ove rridden methods? > > > I have a

Re: OO question

2003-01-28 Thread gerhard . petrowitsch
LIPS@EMEA1 cc: Subject: Re: O

Re: OO question

2003-01-28 Thread Magnus Lindgren
delete the reference itself: delete $top->{_var}{name1}; I may be wrong or there may be a simpler way but this is what I would have done. Regards, Magnus - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003 11:00 AM Subje

OO question

2003-01-28 Thread gerhard . petrowitsch
Hi all, I've got a little object-oriented programming question: I've built a class that recursively creates instances of itself, storing them in itself. $top = MyClass->new(); $top->{_var}{name1} = MyClass->new(); and so on, down a number of levels, creating a tree. If I now delete one of the

RE: OO question

2002-07-30 Thread Lee Goddard
> > I'm starting to get into OO programming with Perl and > > have a question. > > > > As I understand it with OO - you create an object and > > then do something to it. > > > > I have a list of values in an array and I wish to do > > the same "something" to all of them. > > > > Do I need to crea

Re: OO question

2002-07-30 Thread Carl Jolley
On Tue, 30 Jul 2002, [iso-8859-1] Nathan Rimmer wrote: > I'm starting to get into OO programming with Perl and > have a question. > > As I understand it with OO - you create an object and > then do something to it. > > I have a list of values in an array and I wish to do > the same "something" to

RE: OO question

2002-07-30 Thread Joe Schell
> -Original Message- > From: Behalf Of Nathan Rimmer > > > I'm starting to get into OO programming with Perl and > have a question. > > As I understand it with OO - you create an object and > then do something to it. > The definition of a object is data and behavior that affects that da

RE: OO question

2002-07-30 Thread Peter Eisengrein
Title: RE: OO question I think the answer is yes, you can do it all in one process. If I understand you correctly you want to know whether you can do something like this: ### BEGIN use Nathan::Rimmers::Module; my %array; my $do = new Nathan::Rimmers::Module; my $result = $do->someth

OO question

2002-07-30 Thread Nathan Rimmer
I'm starting to get into OO programming with Perl and have a question. As I understand it with OO - you create an object and then do something to it. I have a list of values in an array and I wish to do the same "something" to all of them. Do I need to create an object for each value in the arr