From: Aleksei Guzev Date: 2001-08-09T14:47:42+09:00 Subject: [ruby-talk:19408] Re: WIN32OLE # -----Original Message----- # From: ts [mailto:decoux@moulon.inra.fr] # Sent: 9 ������� 2001 �. 10:57 # To: ruby-talk ML # Cc: ruby-talk@ruby-lang.org # Subject: [ruby-talk:19406] Re: WIN32OLE # # # >>>>> "A" == Aleksei Guzev writes: # # A> But every line of code seems residing inside a method body. Where # A> could one define a constant rather than in a method? # # At the beginning of a class Where "if" is allowed? # # A> Is there a problem with defining constants from a method? What is # A> this limitation for? # # Perhaps to protect you against a possible modification by a method. # No modification. Since there can not be a global constant due to name restrictions, it would simple define a NEW LOCAL constant # # Guy Decoux #