From: Austin Ziegler Date: 2003-09-11T06:54:59+09:00 Subject: Re: ANN: MetaTags 1.0 On Thu, 11 Sep 2003 04:05:26 +0900, Ben Giddings wrote: > Richard Kilmer wrote: >> Then: >> class String >> def &(klass) >> klass.from_str(self) >> end >> end >> then you can do: >> c = "one hump or two" & Caml > I like this better than Dave's suggestion of the Caml() function, but it > is somewhat confusing. Since the "&" is already used, I thought maybe > another operator might make more sense, but I discovered that there is > only a small set of operators that seem to be overloadable. Is there a > complete list somewhere of overloadable operators? irb(main):001:0> "a" & "b" NoMethodError: undefined method `&' for "a":String from (irb):1 irb(main):002:0> VERSION => "1.8.0" -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.09.10 * 17.52.55