Book a Demo

Author Topic: bug?  (Read 3301 times)

kalbun

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
bug?
« on: December 21, 2004, 03:08:44 pm »
using Borland c++builder, I defined a new class as descendant of a VCL class.
I chose not to use automatic generation of constructor, and instead wrote the member myself - it was easier to add the required parameters and the __fastcall clause.

Ok, suppose the constructor was defined in the EA input mask as:

Name: foo
Return type: __fastcall
Virtual flag checked

Then, generated code is:

virtual __fastcall foo( <various parameters> );

So far so good. But when I generate the code the second time I obtained:

virtual __fastcall virtual __fastcall foo (...

and then

virtual __fastcall virtual __fastcall virtual __fastcall foo (...

And so on towards the infinity   ;D

Is it a bug? Or I'm doing something in the wrong way?

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: bug?
« Reply #1 on: December 21, 2004, 11:31:45 pm »
it is not a bug its a feature ;)
it's ment to make sure you check your code.... ;D
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: bug?
« Reply #2 on: December 23, 2004, 01:53:42 pm »
Yes... It's a feature...  ;)

Unfortunately we may need to ... remove that feature.  It's ... causing ... um ... compatibility issues.

Simon  ;D