Minero Aoki wrote:
> Hi all,
>

Hi Aoki-san - Thank you.


> [ruby-dev:27417] selector namespace
>
>   Shugo Maeda proposed a new language feature, "selector namespace".
>   Matz also noted this topic in his key note at Ruby Conference 2005.
>
>     class String
>       def jcode$chop   # define #chop method in jcode namespace
>         ...
>       end
>     end
>
>   [...]


  def jcode:>chop

  a = ns:>Foo::Bar.baz


Really easy to type :-)


>     * whether spaces are allowed around [':>']

Follow rules of quad (::)

class A; class B; C5 = 5; end; end

A::B::C5
#-> 5

A::B :: C5
#-> C:/TEMP/rb8125.TMP:4: uninitialized constant C5 (NameError)


daz