[YBA] g++ newbie: No warn on missing method implementation?

[YBA] g++ newbie: No warn on missing method implementation?

Jonathan Ben Avraham yba at tkos.co.il
Tue Jul 13 13:36:48 IDT 2010


Hi Shachar,
Right again. I had a bug in a macro that defined the class name. In fact 
all of the methods bodies were implemented outside the class.
Thanks,

  - yba


On Tue, 13 Jul 2010, Shachar Shemesh wrote:

> Date: Tue, 13 Jul 2010 12:46:41 +0300
> From: Shachar Shemesh <shachar at shemesh.biz>
> To: Jonathan Ben Avraham <yba at tkos.co.il>
> Cc: ILUG <linux-il at cs.huji.ac.il>
> Subject: Re: [YBA] g++ newbie: No warn on missing method implementation?
> 
> Jonathan Ben Avraham wrote:
>       Hi Shachar,
>       Right, right.
>       I also think that the VS2008 is doing something "extra".
>
>       My problem is that I have a class with 70+ methods and the customer keeps changing the
>       specs. I need some way to verify that all of the methods declared in the class have
>       implementations. The most common mistake is that I change the method name in the class
>       but forget to change the name in the implementation.
> 
> That would not compile. The implementation under the old name would not match any method
> declaration, and the compiler would complain.
> 
> Shachar
>       I suppose that I could write a Perl script that would automatically generate method
>       calls from the class method declarations and then watch for link errors.
>
>       Regards,
>
>        - yba
> 
> 
>

-- 
  EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
      - yba at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the Linux-il mailing list