title: How can I create my own dot operator function for a string?
body: <p>I'm a student. Let's say I want to be able to do my_string.reverse();. I don't want to see the actual code to reverse a string, I just want to see how this function would be implemented for strings.</p>
  
  <p>A side question: why have I never seen this dot operator used with types such as int or char, is that simply not possible?</p>