lua-users home
lua-l archive

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


----- Original Message -----
From: Luiz Henrique de Figueiredo
Date: 2/2/2009 6:04 PM
I can see no way,
other than generating and compiling a source code string or poking about in
the internals, of getting the run-time value of a variable into a
string.dump.
    
I'm not yet clear what your goals are but what's wrong with compiling a
source code string?
  
I've had a desire to do a similar thing.  Compiling a source code string takes extra time in a high performance environment.  More memory allocations are used, too.  My examples are pretty simple:

return function()
    return ACallback(5, 10)
end


function(value)
    TheCallback(value, 10)
end

Josh