Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2025-04

"automated" section

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb

According to a comment in the Lazarus Highlighter code, there either is or used to be a class section "automated" (just like public, private, ...)

I can't find many refs in the fpc source. The most helpful (if calling it that) is from  packages\fcl-passrc\tests\tcresolver.pas This shows at least, that it is used as class section, and that the section can then have a field.

But the compiler does not seem to like it. Any attempt to put it into any code (tried various $mode) leads to errors only.

So the question is: Does it still exist?
Or is it time to remove it from the HL?

Reply by email

Michael Van Canneyt
to Martin Frb
Martin Frb wrote 13 lines
According to a comment in the Lazarus Highlighter code, there either is or used to be a class section "automated" (just like public, private, ...) I can't find many refs in the fpc source. The most helpful (if calling it that) is from  packages\fcl-passrc\tests\tcresolver.pas This shows at least, that it is used as class section, and that the section can then have a field. But the compiler does not seem to like it. Any attempt to put it into any code (tried various $mode) leads to errors only. So the question is: Does it still exist? Or is it time to remove it from the HL?

Automated exists for Delphi compatibility. It is used for COM servers on windows. It is the same as 'public' for all practical purposes, although there are some restrictions.

The fcl-passrc parser handles it because it can be used to document Delphi code, and as such must be able to handle this section.

You can find more info here:
https://docwiki.embarcadero.com/RADStudio/Athens/en/Classes_and_Objects_(Delphi)#Automated_Members_.28Win32_Only.29

FPC itself does not understand or use it. Maybe an issue should be filed for it.

Michael.

Reply by email