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,
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
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
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