Hmm.. I suspected that a C# parser might not get some complex - TopicsExpress



          

Hmm.. I suspected that a C# parser might not get some complex statements regarding the out keyword and I was right =/ The following fails at return true. --- public bool DoSomething (out int a, out int b) { ____bool firstAssigned = true; ____for (int i=0; i < 3; ++i) { ________if (i == 0) { continue; } ________if (firstAssigned) { ____________b = i; ____________return true; ________} else { ____________firstAssigned = true; ____________a = i; ________} ____} ____a = 0; ____b = 0; ____return false; }
Posted on: Sun, 20 Oct 2013 20:10:37 +0000

Trending Topics



Recently Viewed Topics




© 2015