Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionWindows Explorer Columns Pin
Calvin Streeting3-May-08 23:44
Calvin Streeting3-May-08 23:44 
AnswerRe: Windows Explorer Columns Pin
Dave Kreskowiak4-May-08 15:42
mveDave Kreskowiak4-May-08 15:42 
GeneralRe: Windows Explorer Columns Pin
Calvin Streeting6-May-08 12:46
Calvin Streeting6-May-08 12:46 
Questioncompile time error or runtime error? Pin
George_George3-May-08 23:42
George_George3-May-08 23:42 
AnswerRe: compile time error or runtime error? Pin
GuyThiebaut4-May-08 0:30
professionalGuyThiebaut4-May-08 0:30 
GeneralRe: compile time error or runtime error? Pin
Roger Alsing4-May-08 0:42
Roger Alsing4-May-08 0:42 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:01
George_George4-May-08 4:01 
GeneralRe: compile time error or runtime error? PinPopular
Colin Angus Mackay4-May-08 4:35
Colin Angus Mackay4-May-08 4:35 
Roger Alsing wrote:
And the short answer to that is that MS was too lazy to make the compiler check for those kinds of things.


In the contrived example shown, yes, I can see that the compiler could potentially make the determination. But in the real world how many times do you have such a trivial example. Almost never, I'd recon.

In the real world the compiler couldn't tell what the object reference is likely to be at compile time. And if the object reference came in via an argument on a public method then it would never be able to make that determination because it could be called by code outside the assembly which the compiler would have zero knowledge of.

At the end of the day there is limited resources into making the product and I think it is a little disengenous to say that Microsoft are "too lazy" for producing a complier check that has increadibly limited scope in a real world environment.

Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* Introduction to LINQ to XML (Part 1) - (Part 2)

My website | Blog

GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:40
George_George4-May-08 4:40 
GeneralRe: compile time error or runtime error? Pin
Roger Alsing4-May-08 5:24
Roger Alsing4-May-08 5:24 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:56
George_George4-May-08 18:56 
GeneralRe: compile time error or runtime error? [modified] Pin
Roger Alsing4-May-08 7:51
Roger Alsing4-May-08 7:51 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 18:58
George_George4-May-08 18:58 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 4:04
George_George4-May-08 4:04 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 14:19
Guffa4-May-08 14:19 
GeneralRe: compile time error or runtime error? Pin
George_George4-May-08 19:00
George_George4-May-08 19:00 
GeneralRe: compile time error or runtime error? Pin
Guffa4-May-08 23:25
Guffa4-May-08 23:25 
GeneralRe: compile time error or runtime error? Pin
George_George7-May-08 1:24
George_George7-May-08 1:24 
GeneralRe: compile time error or runtime error? Pin
Guffa7-May-08 6:44
Guffa7-May-08 6:44 
GeneralRe: compile time error or runtime error? Pin
George_George7-May-08 22:28
George_George7-May-08 22:28 
GeneralRe: compile time error or runtime error? Pin
Guffa8-May-08 12:59
Guffa8-May-08 12:59 
GeneralRe: compile time error or runtime error? Pin
George_George8-May-08 22:13
George_George8-May-08 22:13 
GeneralRe: compile time error or runtime error? Pin
Guffa9-May-08 1:26
Guffa9-May-08 1:26 
GeneralRe: compile time error or runtime error? Pin
George_George10-May-08 22:00
George_George10-May-08 22:00 
GeneralRe: compile time error or runtime error? Pin
Guffa12-May-08 4:16
Guffa12-May-08 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.