title: Passing operator as a parameter
body: <p>I want to have a function that evaluates 2 <code>bool</code> vars (like a truth table).</p>
  <p>For example:</p>
  <p>Since</p>
  <pre><code>T | F : T
  </code></pre>
  <p>then</p>
  <pre><code>myfunc('t', 'f', ||);  /*defined as: bool myfunc(char lv, char rv, ????)*/
  </code></pre>
  <p>should <code>return true;</code>.</p>
  <p>How can I pass the third parameter?</p>
  <p>(I know is possible to pass it as a char* but then I will have to have another table to compare operator string and then do the operation which is something I would like to avoid)</p>
  <p>Is it possible to pass an operator like <code>^</code> (XOR) or <code>||</code> (OR) or <code>&amp;&amp;</code> (AND), etc to a function/method?</p>