lua-users home
lua-l archive

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


Am 24.03.2010 16:48, schrieb Eike Decker:

I would see a benefit in conjunction with final functions, where the
keyword "final" would put up the requirement "Function without a
sideeffect", e.g.

final function a (y) return y*2 end
final function b (x)
   y = x; --<-- compile time error, not a function without sideeffect
due to global variable assignment
   return val + x
end

Insteat of "final function ..." I would prefer "functional ...", but that is not the topic here.

Cheers
Frank