[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: trapping duplicate table keys
- From: Asko Kauppi <asko.kauppi@...>
- Date: Thu, 19 Aug 2004 16:48:12 +0300
Would it be hard to include in the Lua parser a check for duplicate
table keys.
Something that'd say 'nope' if the source has:
tbl= { key= aaa,
...
key= bbb,
}
This bit me just a few seconds ago, using Hamster:
env:SharedLibrary{ target= "smpeg",
--
srcdir= SMPEG_ROOT,
incdir= { SDL_ROOT.."include/",
PORTSDK.."include/" },
...
incdir= { SMPEG_ROOT.."audio/",
SMPEG_ROOT.."video/" },
}
The first 'incdir' gets quietly ignored, and of course, it doesn't work
right. Since this happens at the parser level, there's not much I can
do, is there?
-ak