Re: Problem with linker

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Thu, 07 Jun 2007 10:48:42 -0400, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

Default parameters introduce all kinds of problems, especially when overloading comes into
play. Suppose I have

class Someting {
public:
Something(LPCTSTR = NULL);
Something(int);
}

you would think there is no problem, but Something() is ambiguous.

I don't agree. I think you are wrong here, IMHO.
Something() is *not* ambigous, because you have not defined a default
constructor.

It would be ambigous if you wrote also a default ctor.
This would be ambigous (and result in compiler error):

Something();
Something(LPCTSTR = NULL);
Something(int);



Deterministic finalization is fairly important, *especially* with a GC involved. Consider

SomeClass() { open file here, exclusive }
~SomeClass() { close file here }

void SomeFunction()
{
SomeClass();
.. do things
}


But would 'using' C# keyword be useful here?

MrAsm
.



Relevant Pages

  • I need XMMS help
    ... Yellow Dog Linux on an old iMac. ... window, an "open file" window pops open, prompting me for a file on the ... I can't play Internet streams. ...
    (comp.os.linux.powerpc)
  • I need XMMS help
    ... Yellow Dog Linux on an old iMac. ... window, an "open file" window pops open, prompting me for a file on the ... I can't play Internet streams. ...
    (comp.os.linux.setup)
  • Re: Singing aerials
    ... URL into MPC to attempt to play it. ... File - Open File. ... It'll take a local or internet address. ...
    (uk.tech.digital-tv)
  • raymo80040111
    ... when trying to open file babymatrix.mov from www.theperch.com i get error ... i have used the perch many times in ... not play now the babymatrix was just an example ...
    (microsoft.public.windowsmedia.player)
  • 80040111
    ... when trying to open file babymatrix.mov from www.theperch.com i get error ... i have used the perch many times in ... not play now the babymatrix was just an example ...
    (microsoft.public.windowsmedia.player)