[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: self
- From: Enrico Colombini <erix@...>
- Date: Mon, 9 Jun 2003 09:43:18 +0200
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
end
Could this lead to name conflicts with other uses of "self" in the future?
Enrico