SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: admott on October 18, 2006, 09:12:40 am

Title: classes viewer's bug!
Post by: admott on October 18, 2006, 09:12:40 am
When I try to "Add Member Function ..." in the class viewer, it rise a error "invalid declaration". The function is a virtual destructor in C++.

When i try to add a destructor, like " ~PetriNet(void)", It also warns me "Destructor cannot have arguments".

Is this a bug of slickedit?
Title: Re: classes viewer's bug!
Post by: Graeme on October 18, 2006, 11:42:12 am

Technically this is a bug in slickedit since the standard requires a destructor to have an empty parameter list and also says that (void) is equivalent to an empty parameter list (8.3.5/2).  The Comeau compiler, Visual C++ and GCC all accept (void) in a destructor.   Still it's very odd to write (void) in C++ so perhaps you could change your code to ()  - if there's not too many ?

Graeme
Title: Re: classes viewer's bug!
Post by: admott on October 19, 2006, 01:45:11 am
And what about the bug of virtual destructor ?
Title: Re: classes viewer's bug!
Post by: Graeme on October 19, 2006, 02:30:33 am

Sorry, I didn't look at your .jpg.

It doesn't like destructors at all, with or without virtual.  You should report these problems to slickedit support via email.

Graeme
Title: Re: classes viewer's bug!
Post by: Clark on October 19, 2006, 06:01:56 pm
Hey, you found a bug :-) The worst one is not supporting virtual.  The guy who wrote this must have been an OO moron.  Try not to laugh at me too hard :-) I'll take a look at these.