[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why does this work?
- From: Wesley Smith <wesley.hoke@...>
- Date: Thu, 3 Feb 2011 21:59:37 -0800
> 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