From: Aleksei Guzev Date: 2001-08-09T13:08:41+09:00 Subject: [ruby-talk:19399] RE: WIN32OLE Thus having local constant there is no way to access global one of the same name. # -----Original Message----- # From: dave@thomases.com [mailto:dave@thomases.com] On Behalf # Of Dave Thomas # Sent: 8 ??????? 2001 ?. 18:49 # To: ruby-talk ML # Subject: [ruby-talk:19376] Re: WIN32OLE # # # "Aleksei Guzev" writes: # # > Are there global constants and how they are distinguished # from locals? # # Just using the scope of definition: # # fred.rb: # # C1 = 99 # # class Dave # C2 = 101 # end # # # C1 is global, C2 must be accessed outside class Dave using # Dave::C2. You cannot define a constant within a method. # # # Regards # # # Dave #