lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Is it acceptable to use "self" as a local variable name (when it's not a 
parameter, of course)? I am using it in 'constructor' functions for 
uniformity with 'method' functions, like this:

function Building.Create(stories)
  local self = {}
  self.stories = stories
  self.CleanWindows = Building.CleanWindows
  return self

Could this lead to name conflicts with other uses of "self" in the future?