In the first two cases, 'f' is a value, it gets evaluated 'right now' as the code is executed top to bottom.

In the third case, 'f' is a function, its body is evaluated when it is called. It is called twice (f 0, then f 100), and so body is evaluated each time there.

Does it make sense?

By on 3/13/2009 6:06 PM ()

yes, thank you

By on 3/14/2009 1:35 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper