Re: Operator Overloading <<
- From: "Matt Hulse" <matt.hulse@xxxxxxxxx>
- Date: 30 Sep 2005 07:56:12 -0700
<<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
.
- Follow-Ups:
- Re: Operator Overloading <<
- From: James Edward Gray II
- Re: Operator Overloading <<
- References:
- Operator Overloading <<
- From: matt.hulse@xxxxxxxxx
- Operator Overloading <<
- Prev by Date: Apache 2 & global variables question
- Next by Date: Re: Rake, Rant, A-A-P
- Previous by thread: Re: Operator Overloading <<
- Next by thread: Re: Operator Overloading <<
- Index(es):
Relevant Pages
|