lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Wild wrote:
[...]
> Try prefixing the chunk name you pass with '@', e.g. '@myres'. Worked
> that one out the hard way :)

The docs are really, really obscure, but there --- see the definition
for lua_Debug.source in section 3.8 of the manual.

TBH I think it would be nice to have this described in the documentation
for loadstring() and load(). It took me ages to find.

- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLBdtGf9E0noFvlzgRAuU+AKCxPR6/jzsZuVVNq7LNQTtorvZRYQCg3MIK
MCNleD5vpinZIeDkfVflbUA=
=YOdH
-----END PGP SIGNATURE-----