The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

JoshF (1) [Avatar] Offline
#1
Hi,

After having heard and read great things about your book, I picked up a copy recently. I must say that I'm not disappointed: overall an excellent text from which I'm learning a great deal.

Section 2.2 on type characteristics clarified my understanding on type classification but I would like to have seen a section on early and late binding somewhere in your book.

I been trying to understand when C# does early and when it does late binding. I asked a question about this at Stackoverflow recently (http://stackoverflow.com/questions/484214/c-early-and-late-binding).

Perhaps it's something you could consider including in the next edition?

Best regards and thanks for sharing your expertise.

Josh

Message was edited by:
JoshF
jon.skeet (483) [Avatar] Offline
#2
Re: Early and late binding
I saw the question, but unfortunately didn't have time to answer it fully.

The next edition (assuming it happens) will cover C# 4.0 as well, so there'll have to be extensive discussion about early vs late binding at that point anyway. I suspect I'd rather give a full explanation once (in the part about C# 4.0) than "half cover" it twice. As you've seen in the answers to your question, it really comes down to the meaning of early/late binding - which are probably as widely debated as "strong typing" etc. If the runtime knows the exact signature to use, and just has to find the right override to call, does that count as early binding? It can't find the code without knowing the execution-time type, which makes it sound like late binding... but it's still done *most* of the lookup work at compilation time...

I suspect this will take a few pages at least to explain fully - and that's before I get to C# 4.0's dynamic bindings smilie

Glad you're enjoying the book, and hope to see you again on SO...

Jon