Book a Demo

Author Topic: Bug in reverse C++  (Read 4334 times)

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Bug in reverse C++
« on: October 20, 2005, 06:23:31 am »
Hello again,

seems as it is my day...

I just found a bug when reversing a C++ class

here's the definition of the class



class CString : public CSerializable
{

public:

void ForceData(char ForceChar);

long Find(char CharToFind, long StartAt = 0);

// Constructors
   CString();
   CString( char* szData );
   CString( const CString& OtherString );

// Destructor

virtual ~CString();

// Operations / methods

long GetLength() const;

void Clear();
   char GetAt( long Index );
   bool SetAt( long Index, char NewChar );
protected:

void SetData(const char* newVal, long Length );
   void ConcatData(const char* newVal, long Length );
   bool Equals( const char* szData, long Length );

public:
// operators
// "=" operators
   const CString& operator =( const CString& OtherString );
   const CString& operator =( const char* szData );

// "+=" operators
   const CString& operator +=( const CString& OtherString );
   const CString& operator +=( const char* szData );

// "==" operators
   bool operator ==( const CString& OtherString );
   bool operator ==( const char* szData );
   
   operator const char *();

private:

/**

* pointer to the CString data.

*/

   char *m_Data;

   long m_Length;
protected:

   char* GetData() const ;

};



The operator marked in red gets interpreted as an attribute instead of a method!

Any ideas?

cheers,
Manfred
Best regards,
Manfred

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Bug in reverse C++
« Reply #1 on: October 20, 2005, 09:21:25 pm »
Will be fixed in version 6.0.

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Bug in reverse C++
« Reply #2 on: October 21, 2005, 12:07:41 am »
Thanks Simon,
good news!

When is it due to be out?

cheers
Manfred
Best regards,
Manfred

thomaskilian

  • Guest
Re: Bug in reverse C++
« Reply #3 on: October 21, 2005, 12:35:30 am »
When the leaves start to fall ;) There's a ppt preview on Sparx site which announces 6.0 for end of this year.

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Bug in reverse C++
« Reply #4 on: October 21, 2005, 01:16:08 am »
Great!

Thanks, Thomas!

PS: Anybody knows if EA will finally support natively C/C++ unions ?

cheers,
Manfred
Best regards,
Manfred

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Bug in reverse C++
« Reply #5 on: October 21, 2005, 01:19:18 am »
Dear wink - the server providing your 'image' wants to put a cookie on my PC.

I told it what to do with its cookie ;-)

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Bug in reverse C++
« Reply #6 on: October 21, 2005, 01:23:30 am »
Hi Mike,

Sorry for that but its just a free host and I don't have any influence on what it does.

have a nice day,
Manfred
Best regards,
Manfred

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Bug in reverse C++
« Reply #7 on: October 23, 2005, 04:59:13 pm »
Quote
PS: Anybody knows if EA will finally support natively C/C++ unions ?

Yes.  The support is in there.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Bug in reverse C++
« Reply #8 on: October 23, 2005, 05:00:09 pm »
Quote
When the leaves start to fall ;)


Or in our case the leaves are just growing back.  ;)

thomaskilian

  • Guest
Re: Bug in reverse C++
« Reply #9 on: October 24, 2005, 02:09:19 am »
Strange world ;D

wink

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
  • Montjoie, que jamais ne choit!
    • View Profile
Re: Bug in reverse C++
« Reply #10 on: October 24, 2005, 02:22:02 am »
Hmm, Thomas and Simon,

if you're not sure about the leaves, try {Element.IsLeaf} on every tree item...
;)

EA will return the right answer...  ;D

have a nice day (or night in down under?)

maybe we need a {method.IsDay} tag... ::)

PS: Thank's a lot for the coming union support!!!!!

Best regards,
Manfred