From: Joe Van Dyk Date: 2005-07-18T22:46:36+09:00 Subject: Re: Ruby has ruined my Java (was Re: Ruby has ruined my C++) On 7/18/05, tony summerfelt wrote: > Kero wrote on 7/17/2005 6:05 PM: > > > and in Ruby/Tk you do: > > > > b = TkButton.new(nil, "text"=>"quit").pack > > b.command { exit } > > > I fail to see what you're trying to argue here... > > ease. > > if the first line were: > > b=TkButton.new(text=>"quit").pack You could do: b = TkButton.new(nil, :text => "quit").pack I'm not sure if you can use nil there though... doesn't it need a parent? > > i'd be a lot happier. i realize that tk has to be shoehorned into > ruby's oo'ness. > > ignore me. could be i'm just frustrated at trying to recreate my own > interface (tkblog) in ruby :) > > -- > http://home.cogeco.ca/~tsummerfelt1 > telnet://ventedspleen.dyndns.org > > >