Re: Operator Overloading <<



<<Austin>>You can't overload in Ruby, you can override and you have to
call super to make it work, or you have to call it directly with
aliasing.

Yes, override is the term I should have used. Bob and Daniel, thanks
for the examples and Austin, thanks for the guidance in the right
direction. I will go learn about delegates and see how I fare. Aside
from being new to Ruby I'm still pretty new to programming in general.
(Just a couple of C++ classes under my belt. Enough to be dangerous
;-) ) But I am loving Ruby!!!

Are delegates common to all OO languages? I don't remember learning
about them in my C++ class.

Thanks again.

Matt

.



Relevant Pages

  • Re: file compare and remove lines
    ... Okay, here's some guidance. ... Chances are Ruby will be able to perform the task you describe, ... describe it with sufficient clarity, and once you acquire the necessary ...
    (comp.lang.ruby)
  • Re: Twelve rules of Ruby.
    ... guesses with no guidance, and where the examples work with the ... current version of ruby in wide use today. ... I can't comment on the Rails side of things as that's not my primary ... I also recommend the second edition of The Ruby Way by Hal ...
    (comp.lang.ruby)
  • Re: Welcome to our (ruby-talk ML) You are added automatically
    ... I'm new to Ruby and hope to get some guidance from all the gurus out there. ... Prev by Date: ...
    (comp.lang.ruby)
  • Scientific calculation: get Std.Dev for a integer array
    ... Could you please point me how to do some scientific calculation in Ruby: ... How to calculate std.dev for an integer array? ... Austin ...
    (comp.lang.ruby)