Book a Demo

Author Topic: Delphi code generator creates too many methods  (Read 3011 times)

dufresne

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Delphi code generator creates too many methods
« on: July 16, 2004, 01:16:19 am »
Hi,

I'm currently evaluating EA. It's a great product for designing applications but I've had some problems with forward-engineering Delphi code. Whenever I add a new parameter to an existing operation, the Delphi code generator creates an additional method instead of modifying the existing method declaration. If I try to compile the code the compiler of course recognizes this as an error. Do I maybe misconfigure some option?

Barry_Pearce

  • EA User
  • **
  • Posts: 70
  • Karma: +0/-0
    • View Profile
Re: Delphi code generator creates too many methods
« Reply #1 on: July 22, 2004, 04:22:06 am »
If its like the C++ generator then forwards engineering is only partially supported....and EA fails to synchonrise in the expected manner....so you havent mis-configured it.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Delphi code generator creates too many methods
« Reply #2 on: July 25, 2004, 04:40:19 pm »
Hi,

The problem you are describing is that EA will no longer recognise the function as the same function.  As a result EA will leave the function in the code and insert the function it sees as new.

This is the expected behaviour.

We are currently testing some new functionality that allows users to determine what happens in this situation.

Regards,

Simon

AdamHearn

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Delphi code generator creates too many methods
« Reply #3 on: July 25, 2004, 05:05:39 pm »
That's cool 8)

I remember Rose used to mark each method with a unique id which. I assume, it later used in code gen process.