title: why can't this Lua function using a self ":" be marked "local" without getting "'(' expected near ':'"
body: <p>Why can't this Lua function using a self ":" be marked "local" without getting:</p>
  
  <blockquote>
    <p>'(' expected near ':'</p>
  </blockquote>
  
  <p>That is, in the code below things work.  But why can't I make the "scene:createScene" function local (as I get the above-mentioned error when trying).  </p>
  
  <p>I note the listener functions need to be made local else I have struck cross-scene issues at times in storyboard.  These can be marked local and work fine.</p>
  
  <pre><code>SceneBase = {}
  function SceneBase:new()
    local scene = Storyboard.newScene()
  
    local function returnButtonTouch_Listener (event)
      -- code here
    end
  
    function scene:createScene( event )   -- WHY CAN'T THIS BE LOCAL???
      -- code here
    end
  
    return scene
  end
  return SceneBase
  </code></pre>
  
  <p>That is why can't the function line read:</p>
  
  <pre><code>  local function scene:createScene( event )
  </code></pre>