lua-users home
lua-l archive

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


One thing to watch out for in making assignment an expression:

It would be wise to replace = with := as the assignment operator to avoid
the errors that could come from type "while a = b do" when you meant "while
a == b do".

The last language I designed prohibited "=" for just that reason.

Mark