lua-users home
lua-l archive

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

Is it somehow possible to make one time assignment to a to-be-closed variable? E.g. something like this:

local res <const>

if cond == 1 then
   res = db:exec('select * from whatever')
   res = db:exec('select * from somethingelse')

Or is it so that to-be-closed variables can only be assigned a value during creation?

If the latter:  It would be useful to allow for one time assignment to to-be-closed variabled.

- mb