[Lazarus] Include files extension
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu Oct 11 10:17:18 CEST 2012
Marco Aurelio Ramirez Carrillo wrote:
> I ignore if this topic ha been mentioned before on the mailing lists.
>
> I work with several tools,
> including Lazarus, Delphi, and some C/C++ compilers.
>
> I use indude files, frecuently, in several enviroments,
> ( "*.inc"). But, got mixed up with both,
> Pascal-related & C-related include files.
>
> Altought FPC, allows you to include a text file with any extension, I
> would like to propose that the Lazarus I.D.E.
> explicitly allows an additional file extension,
> maybe "*.incpas", "*.ipas" or "*.incp".
Two points here. First, I don't think I've seen C/C++ include files
named other than .h/.hpp, except where they're machine-generated code
from a specialist processor. Second, the implications of any change
would have to be considered on all platforms: having an assumed
extension might be OK on Windows where a file almost always has an
extension, but not on Unix where the executable normally doesn't.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list