I have figured out the answer to my first question. The whole function syntax thing.

But I am still baffled by the other questions i.e. where does newPos get its value etc.

By on 5/15/2010 7:12 PM ()

OK. I have finally figured this out.

The penny dropped with this line fun s -> s.Reposition (new Point (40,40)) , which was a bit further on in the example.

So newPos gets its value from the Point parameter passed in to that method.
The example just had a few too many "new things" which had not been presented before in the book. Like setting a function as one of the members of a record. That was a leap.

By on 5/16/2010 12:14 AM ()

Sometimes the best way to understand something is to ask a question about it.

A business partner of mine and I used to do that. When one of us was stuck on a problem, we'd call the other and start off with something like: "Let ask you if you can solve this problem I'm having. You won't have to actually solve it, because by the time I finish asking the question, I'll have solved the problem myself." Lol.

My only explanation is that asking the question somehow helps you zero in on what information you need to answer it.

-Neil

By on 5/16/2010 7:19 AM ()

There's definitely wisdom in that.
Thanks!

By on 5/17/2010 3:23 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