lua-users home
lua-l archive

Re: removing key from table

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Does that actually "remove" it or just set it to nil, because I know how 
> to do that. But I wanna remove it.
Define "remove" then. Consider:
	t={ a=10 }
	print(t.a.t.b)
	t.a=nil
	print(t.a.t.b)
Is field 'a' now any different from field 'b'?

AltStyle によって変換されたページ (->オリジナル) /