Automatically setting attributes

Do those methods have any advantages over doing
@goo, @moo = 0, 0

You only write one zero... :slight_smile:

The only real difference is in Joel's method of grepping for sym= type
methods, where you don't have to specify the variables names.

Hi --

路路路

On Thu, 29 Jul 2004, Mehr, Assaph (Assaph) wrote:

> Do those methods have any advantages over doing
> @goo, @moo = 0, 0

You only write one zero... :slight_smile:

@goo = @moo = 0 # :slight_smile:

David

--
David A. Black
dblack@wobblini.net

David A. Black wrote:

Hi --

Do those methods have any advantages over doing
@goo, @moo = 0, 0

You only write one zero... :slight_smile:

@goo = @moo = 0 # :slight_smile:

David

I like!

路路路

On Thu, 29 Jul 2004, Mehr, Assaph (Assaph) wrote: