RE: ref problems

2001-07-30 Thread Mooney Christophe-CMOONEY1
case for trying to make my modules god-like. I guess it's just an art--one i have yet to master. ;) -Original Message- From: Jos I. Boumans [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 10:14 AM To: Mooney Christophe-CMOONEY1; [EMAIL PROTECTED] Subject: Re: ref problems Hi,

Re: ref problems

2001-07-30 Thread Jos I. Boumans
Hi, I'm not sure you're quite understanding the logic of modules and packages yet... the idea of a module is that you use methods (subroutines belonging to a package) to execute code however, you're making your 'methods' attributes to an object. This quite defeats the purpose and provides nothing

Re: ref problems

2001-07-30 Thread Brett W. McCoy
On Mon, 30 Jul 2001, Mooney Christophe-CMOONEY1 wrote: > Saying > $a_dog->{'speak'}($a_dog) > on the last line would solve this problem, but it would be nice not to have > to worry about passing itself to the function. Does anyone see any > alternatives to this? > > Thanks! > > #!/local/pe

ref problems

2001-07-30 Thread Mooney Christophe-CMOONEY1
Hello, all -- i have come across an interesting problem. When i run the following script, i get that '$this' in dog::bark is undefined. When i think about it, this makes sense, since call $a_dog->{'speak'}() is like saying "dog::bark". Saying $a_dog->{'speak'}($a_dog) on the last line w