On 9/1/06, Hal Fulton <hal9000 / hypermetrics.com> wrote:
> Here's a little something I like. YMMV.
>
> Hal
>
>
>    require 'pathname'
>
>    class Pathname
>      alias / +
>    end
>
>    home = Pathname.new("/home/hal")
>    proj = home/"projects"
>    foo  = home/"projects/foobar"
>
>

Those poor Windows guys. <G>

irb(main):017:0> class Pathname
irb(main):018:1>   alias \ +
irb(main):019:1* end
SyntaxError: compile error
(irb):18: parse error, unexpected $undefined.
  alias \ +
         ^
        from (irb):19
        from :0
irb(main):020:0>

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/