Re: table field init
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: table field init
- From: Sean Conner <sean@...>
- Date: 2017年9月27日 03:01:39 -0400
It was thus said that the Great hz . once stated:
> hi,
>
> Is there a way to init table field as:
>
> tbl = {
> a = ‘aaa’,
> b = a,
> }
>
> where b is inited as ‘aaa’?
>
> Or what’s the most simple approach to do this.
Umm ...
tbl =
{
a = 'aaa'
}
tbl.b = tbl.a -- ?
tbl = {}
tbl.a = 'aaa'
tbl.b = tbl.a -- ?
-spc