[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Error reporting: the chunk name
- From: "John Hind" <john.hind@...>
- Date: Fri, 20 Nov 2009 12:24:03 -0000
OK if you *explicitly* start the name with '=' the '=' gets stripped and the
rest of the string is displayed literally (similarly to using the explicit
But this is undocumented, and weird!
If this is the approach, it would be better if lua_load prefixed the '='
*automatically*. Also it would be better if there was a prefix for the
source string case as well because then the first character would always be
a marker and there would be no possibility of ambiguity.
[mailto:email@example.com] On Behalf Of Luiz Henrique de
Sent: 20 November 2009 09:55
To: Lua list
Subject: Re: Error reporting: the chunk name
> There are three distinct cases (filename, source code, user-supplied
> name) and there should be an explicit marker for each.
User-supplied names start with '='. See luaO_chunkid.