From: michael libby Date: 2002-08-28T22:03:00+09:00 Subject: Re: Tk and -w -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 28 August 2002 03:23, Reimer Behrends wrote: > michael libby (x@ichimunki.com) wrote: > > The offending line reads: > > @cmdtbl = [] unless @cmdtbl > Either of the following two alternatives should work: > @cmdtbl = [] unless defined? @cmdtbl Thanks. This works perfectly. My tk code is much quieter now. How to submit the following as a patch? The tk.rb in CVS appears to still have the code that will generate a warning. chandler@greyhound:/usr/lib/ruby/1.6$ diff tk.old.rb tk.rb 233c233 < @cmdtbl = [] unless @cmdtbl - --- > @cmdtbl = [] unless defined? @cmdtbl ++++++++++++++++++++++++++++++++++++++++++ Michael C. Libby public key: http://www.ichimunki.com/public_key.txt web site: http://www.ichimunki.com ++++++++++++++++++++++++++++++++++++++++++ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9bMnK4ClW9KMwqnMRApRmAJ9z53ZT5Vb7hQh5WAPxzrUUnerYBQCfRU8G uKruFXzL0RNySy2vyrC7mwM= =TiCm -----END PGP SIGNATURE-----