Hi folks,
why does this warning come up?
What might be wrong with my code?
It comes up on the line where the respective methods are defined.
Thanx a lot,
Juergen
Hi folks,
why does this warning come up?
What might be wrong with my code?
It comes up on the line where the respective methods are defined.
Thanx a lot,
Juergen
Hi –
Hi folks,
why does this warning come up?
What might be wrong with my code?
The warning (“discarding old ”) comes up when you discard an
old method
It basically means that you’ve overridden a method without saving
a path to the old version of the method.
For example:
class String
def split; end
end
However, if you do this:
class String
alias :oldsplit :split
def split; end
end
the old method is still available (as oldsplit), so it has not
been discarded and there’s no warning.
David
On Thu, 12 Dec 2002, Lind, Juergen wrote:
–
David Alan Black
home: dblack@candle.superlink.net
work: blackdav@shu.edu
Web: http://pirate.shu.edu/~blackdav