[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: One time assignment to to-be-closed variiable
- From: Marc Balmer <marc@...>
- Date: Thu, 23 Sep 2021 09:39:38 +0200
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')
else
res = db:exec('select * from somethingelse')
end
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