lua-users home
lua-l archive

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


Given f() that returns multiple values, is t[f()] intended to access
all those values? Because then we have the classic
propagation-of-multiple-values problem that gave you such grief with
string.gsub.

I think I'd need to see more elaborate code snippets to decide if this
is useful, or just cute...

Seconded.  We could certainly do some cute things with this semantic, but, I suspect the real bulk of the use cases would be people using it as syntax sugar on top of an existing multi-index table implementation.  And I'm not convinced that's a use case that justifies the costs of implementation.  Supporting the feature would require new VM opcodes, I think...