lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Access a member from within the table def
From
: "Brian Weed" <brianw@
...
>
Date
: Thu, 13 May 2010 10:35:42 -0700
Is there a way to do this:
t = {
foo = function() end,
bar = some_global_function(foo),
}
Currently I'm handling that by doing the following:
t = {
foo = function() end,
}
t.
bar = some_global_function(t.foo)
Is there some other syntax that I don't know about that would allow me to reference a table member from inside the table definition?
Brian
Follow-Ups
:
Re: Access a member from within the table def
,
Vadim Peretokin
Re: Access a member from within the table def
,
Renato Maia
Re: Access a member from within the table def
,
spir ☣
Prev by Date:
Re: lbc: nil returned while number divided by 0
Next by Date:
Re: Access a member from within the table def
Previous by thread:
Re: lbc: nil returned while number divided by 0
Next by thread:
Re: Access a member from within the table def
Index(es):
Date
Thread