> -----Original Message-----
> From: Joel VanderWerf [mailto:vjoel / PATH.Berkeley.EDU] 
> Sent: Wednesday, November 13, 2002 5:11 PM
> To: ruby-talk ML
> Subject: Re: Keyword arguments?
>
> <SNIP> 
> 
> I agree completely. There's also the point that using yield 
> rather than instance_eval lets you refer to attributes in the 
> static scope:
> 
> @last_name = "powers"
> 
> me = Person.new {
>     @name = 'austin' + @last_name
>     @age = 31
> }
> 
> With instance_eval, you have to pass @last_name into the 
> block using a local var.
> 

right...it looks more like this with yield:

@last_name = "powers"

Person.new do |person|
  person.name = 'austin'+@last_name
  person.age = 32
end

For FXRuby this is really handy because you don't need to keep
references to the created objects (like buttons, etc) do the yield thing
works great.

-rich