[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Please translate this easy snip of C++ to Lua
- From: "Philip Plumlee" <phlip@...>
- Date: Wed, 8 Dec 2004 18:59:07 -0800
William Roper wrote:
> Just a guess off the top of my head but:
>
> TRACE = function (x)
> if(_G[x]) then
> print (x .. " : " .. _G[x])
> else
> print (x .. " : nil")
> end
> end
Help! I'm trapped in an Al Qaeda terrorist cell and they say if I can't
do locals, not globals, then they're going to come at me with tiny
little tweezers...
(Also they don't a benefit making TRACE a handle to a function.)
--
Phlip
http://ssw0251/wiki.rb?RecentChanges
home: mailto:phlip2005@gmail.com
cell: 760 214 2958