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

Overloading

Name: Anonymous 2011-03-01 20:42

Exhibit A


void some_function(int a = some_default_value)
{
    do_something(a);
}



Exhibit B


void some_function()
{
    do_something(some_default_value);
}

void some_function(int a)
{
    do_something(a);
}


Which do you prefer? (e.g. C# forces the 2nd example)

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