title: Lua: Get the literal name of the parameter
body: <p>For example,</p>
  
  <pre><code>function test (a)
      name = nameof(a)
      print(name)
  end
  
  test(def) --should print "def"
  </code></pre>
  
  <p>Are there any lua tricks to implement something similar to the above?</p>
  
  <hr>
  
  <p>Not that anyone needs to explain <em>why</em> they want to do something; some people get grumpy if they aren't  given a real-life example. So:</p>
  
  <pre><code>local function registerTestSuite(suite)
     if (LUnit) then
        LUnit:AddTestSuite(
              HotNReady.."_"..GetVariableName(suite), --HotNReady_PizzaTestSuite
              suite);
     end;
  end;
  </code></pre>