Sign in Join

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

Mailing lists / fpc-pascal / 2006-12

Include files

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mark Morgan Lloyd

Does FPC have any restriction on where in a unit an include file may be inserted?

I was looking at a program last night that's currently compiled by TP and Delphi which eventually I'd like to be compatible with FPC/Lazarus. Customisation is simplified if fragments can be moved into an include file- specifically, parts of an enumeration, command parser and a case statement- but while Delphi appeared happy with an include file in the middle of a procedure TP wasn't.

Obviously knowing whether FTC has any restrictions on this influences what I do with my code.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Daniël Mantione
to Mark Morgan Lloyd

Op Thu, 28 Dec 2006, schreef Mark Morgan Lloyd:

Show quoted text 11 lines
Does FPC have any restriction on where in a unit an include file may be inserted? I was looking at a program last night that's currently compiled by TP and Delphi which eventually I'd like to be compatible with FPC/Lazarus. Customisation is simplified if fragments can be moved into an include file- specifically, parts of an enumeration, command parser and a case statement- but while Delphi appeared happy with an include file in the middle of a procedure TP wasn't. Obviously knowing whether FTC has any restrictions on this influences what I do with my code.

FPC should have no limitations regarding include files.

Daniël

Reply by email