[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua in JavaScript
- From: Tony Finch <dot@...>
- Date: Wed, 25 Jul 2007 20:13:49 +0100
On Wed, 25 Jul 2007, David Given wrote:
> Rob Kendrick wrote:
> [...]
> > There are tricky aspects of cleverer more advanced aspects of each
> > language which are difficult to map onto the other, though. Syntax is
> > the easy bit.
>
> This is actually something I've been thinking about --- do you have any
> pointers on these issues that I can follow up on?
JavaScript does not index tables in the way that Lua does: the key is
converted to a string before being used. This matters when using tables
or functions as table keys.
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
IRISH SEA: SOUTHERLY, BACKING NORTHEASTERLY FOR A TIME, 3 OR 4. SLIGHT OR
MODERATE. SHOWERS. MODERATE OR GOOD, OCCASIONALLY POOR.