Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 32,726 of 33,346    |
|    DeMarcus to All    |
|    Re: Why isn't class a subset of class...    |
|    13 Dec 12 13:19:55    |
      l-september.org> daa5bb8a       From: use_my_alias_here_at_hotmail_com@tellus.orb.dotsrc.org              >> So the semantical question is: is a function with default arguments       >> actually several overloaded functions? If so, we should be able to use       >> them all.       >       > I tend to disagree on the semantical part. A default parameter gives you       > the guarantee, that both functions are the same, just with one parameter       > fixed.       > With overloaded functions on the other hand each overload can have an       > entirely different functionality. And usually this is also the case, since       > otherwise you could use default parameters.       >       > Anyway, regardless whether they are semantically different or not, they are       > not the same in C++, and that's the relevant part.       >              Ok, default arguments may be debatable but I would still like to see a       discussion why it would be bad to allow /class.../ to substitute /class/       like this.              template |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca