Overloading prefix operators...

  • Thread starter Just Another Victim of the Ambient Morality
  • Start date
J

Just Another Victim of the Ambient Morality

Okay, so "operator overloading" is wonderfully trivial and natural in
Ruby but it just occured to me that I have no idea how to change the
behaviour of prefix operators like negate, "-x", where x is an object...
How does one do this?
Thank you...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,219
Messages
2,571,118
Members
47,731
Latest member
unutbu

Latest Threads

Top