Author Topic: Delphi: how to generate the "override" d  (Read 5070 times)

Doctor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Delphi: how to generate the "override" d
« on: March 01, 2005, 07:46:35 am »
Please,

what I shall do to EA will generate the 'override' directive to suppress warning in D5?




Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Delphi: how to generate the "override&quo
« Reply #1 on: March 01, 2005, 01:27:44 pm »
Add a tag value "override" with the value "true" to your method.

Simon

Doctor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Delphi: how to generate the "override&quo
« Reply #2 on: March 01, 2005, 11:30:59 pm »
Thanks Simon!

I thought it is somehow possible because I was looking into the generating template. When you make me sure I've found out the proper way to add the Tag.

Doctor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Delphi: how to generate the "override&quo
« Reply #3 on: March 03, 2005, 07:57:41 am »
Hello again!

Working with this feature I found another problem connected with this.

When reversing the source containing method with this "OVERRIDE =True" tag added value the PURE checkbox is set.  When generated next time  the 'virtual' directive is added also:

'procedure MyMethod; virtual; override;'

instead of

'procedure MyMethod; override;'

Can be this solved in other way than uncheck the PURE manually?

Thanks.


« Last Edit: March 03, 2005, 07:59:12 am by Doctor »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Delphi: how to generate the "override&quo
« Reply #4 on: March 03, 2005, 01:06:18 pm »
It can be solved by downloading and using the latest build of EA. (749) In which the problem you are describing was fixed. :)

Simon

Doctor

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Delphi: how to generate the "override&quo
« Reply #5 on: March 04, 2005, 12:39:14 am »
GREAT!

Downloaded & checked - it works!