trapping duplicate table keys
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: trapping duplicate table keys
- From: Asko Kauppi <asko.kauppi@...>
- Date: 2004年8月19日 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