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]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to