Isn't that what you should be doing anyway?
I mean, this is the documentation I found on using "#" with select, anyway" of wowpedia.
Lua Code:
local num = select('#', ...) -- Returns the number of arguments in the ellipsis.
You have a table there instead of a vararg. The number of arguments there in that case would be one.
I always had an aversion to using select() anyway. I would do that this way:
Lua Code:
local events = {
"EVENT_ONE",
"EVENT_TWO",
"EVENT_THREE"
}
for k,v in pairs(events) do
myFrame:RegisterEvent(v)
end