Recent

Author Topic: ignore class/record attributes in the code  (Read 847 times)

dcoun

  • New Member
  • *
  • Posts: 10
ignore class/record attributes in the code
« on: May 22, 2025, 05:16:17 pm »
I have a number of Delphi units with classes declarations where I am using Attributes for Delphi and FPC 3.2 does not support it.
Is there a way to make the FPC compiler to ignore them without using Preprocessor's IFdefs?

Thank you in advance

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12270
  • FPC developer.
Re: ignore class/record attributes in the code
« Reply #1 on: May 22, 2025, 06:55:35 pm »
I think not. FPC 3.2 doesn't know about them, so can't ignore them, just like older Delphi versions.

Thaddy

  • Hero Member
  • *****
  • Posts: 17213
  • Ceterum censeo Trump esse delendam
Re: ignore class/record attributes in the code
« Reply #2 on: May 22, 2025, 07:11:38 pm »
3.3.1 knows a lot more, but is far from finished and therefor not a candidate for a point release but only for a major release.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

dcoun

  • New Member
  • *
  • Posts: 10
Re: ignore class/record attributes in the code
« Reply #3 on: June 07, 2025, 08:05:38 am »
It will be a big help, the next release of FPC to have a compiler switch to ignore attributes in the code, if it does not support them.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6008
  • Compiler Developer
Re: ignore class/record attributes in the code
« Reply #4 on: June 11, 2025, 10:02:41 pm »
It will be a big help, the next release of FPC to have a compiler switch to ignore attributes in the code, if it does not support them.

There will be no changes regarding this for the upcoming 3.2.4. And the next major release based on the current 3.3.1 will already support attributes.

dcoun

  • New Member
  • *
  • Posts: 10
Re: ignore class/record attributes in the code
« Reply #5 on: June 11, 2025, 10:41:09 pm »
Thank you as lot for the information.
I have to move to use ifdef then, as my project should be finished by the end of this year.

 

TinyPortal © 2005-2018