lua-users home
lua-l archive

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


> Yep.  "oldprint(), which is a reference to *the original* print()"
> If none of these functions were called "print" or anything like it, and there weren't languages where print was part of the language and not just a function, I think it'd all be much simpler to understand.

Functions aren't really references but values.  If you assign print to
oldprint, you can't modify oldprint by somehow modifying print.
Functions are more like numbers.  They're first class values.

wes