[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Operator table [](void) proposal
- From: Adam Dziendziel <whiteraven@...>
- Date: Sun, 02 Jan 2005 11:54:59 +0100
Did anybody think about using the [] operator for pushing new elements
at the end of array? In PHP we can write:
$table = array();
$table[] = 'elem1';
$table[] = 'elem2';
In Lua we must use ugly table.insert() function. It's to much typing -
maybe somebody implement this syntax for convenience?
--
Regards,
Adam Dziendziel