From: Phrogz Date: 2007-06-26T03:05:01+09:00 Subject: Re: Q: how to start a module name with a lower case character? Robert Klemme wrote: > On 25.06.2007 16:53, Mark Watson wrote: [snip] > > It would also be good to be able to alias "::" to ":" so that I could > > use a syntax like: > > > > rdfs:Label > > Hm, no idea whether there is a way although Ruby seems to accept the syntax: > > $ ruby -ce 'rdfs:Label' > Syntax OK FWIW, this is because Ruby interprets that as a method call with a symbol argument, i.e. rdfs( :Label ) irb(main):002:0> rdfs:Label NoMethodError: undefined method `rdfs' for main:Object from (irb):2 irb(main):003:0> def rdfs( *args ) p args end => nil irb(main):004:0> rdfs:Label [:Label] So, with predefined or dynamic prefixes, you could use that syntax as a method that returns a specially-namespaced constant.