Sorry in advance if this is an incorrect question. I'm fairly new to Lua and I'm not sure how to go about this. I want to access a variable stored in a table from a function variable. 
As far as I know there is no self-referencing tables before constructed.

An example would be this:

```
local bigTable = {
    a = {
        foo = 0,
        bar = function(y)
        print(foo) --Incorrect
        end
    }
}

```

What would be the best approach for this situation?