lua-users home
lua-l archive

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



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