[computer-go] C++ parameter passing

Mike Young mikewhy at sbcglobal.net
Thu Aug 10 17:48:44 PDT 2006


----- Original Message ----- 
From: "Chrilly" <c.donninger at wavenet.at>
To: "computer-go" <computer-go at computer-go.org>
Sent: Thursday, August 10, 2006 2:44 AM
Subject: Re: [computer-go] C++ parameter passing


> >
>> C++ classes only have an overhead if they have virtual functions. Even
>> passing "this" as the hidden parameter tends to get optimized away
>> everywhere it is important.
>>
>> Darren
> One passes also the "this" around. But my main point was: It does not make 
> the design easier, more elegant.

Given a hot-glue gun instead of a MIG welder, you would likely approach a 
problem differently. I'm qualified to say, so I'll just go ahead and say, 
C++ will be worth the effort you'll expend learning it.

Also, you'll be hard pressed to call a C-struct member function, with or 
without 'this'.




More information about the computer-go mailing list