lua-users home
lua-l archive

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


Le Tue, 17 Nov 2009 08:19:10 +0200,
steve donovan <steve.j.donovan@gmail.com> stated:

> A general observation: making objects callable all over the place can
> make debugging somewhat difficult. For instance, it pleased me at one
> time to have s(i) meaning 'i th character of the string s' but passing
> around callable strings caused odd error messages - we often depend on
> simply being told, 'look you have not passed me a function'

More generally, overloading abuse or misuse can lead to really undebuggable issues. (painfully bites!)

Denis
--------------------------------
* la vita e estrany *

http://spir.wikidot.com/