Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

wat

Name: Anonymous 2011-08-14 23:38

So in C++ I could do

class A {
    int B();
}

int A::B()
{
    return 1;
}


i.e. I could keep my class definition and the code for the methods separate, but I can't figure out how to do the same thing in C#.  Do I really have to use "partial class A {}" in front of everything?

Name: !!1ILcdKBYf7nyXyy 2011-08-16 12:24

There is no reason to keep class definitions and code separate. It's a holdover from the days of K&R where compile times where actually a problem and all compilers were single pass.

Try again Burger King boy. I could cite a few C code examples where the (conformant) compiler had to/and still does, have to make mulitple passes over the code.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List