Talk:Compiler/Simple file inclusion pre processor: Difference between revisions

(→‎wrong language: removed "why" since a later example covered things)
Line 31:
 
:::I'm not sure why you mention "issues caused by using/declaring the same identifiers in multiple files" - my mention of "Many programming languages allow file inclusion, so that for example, standard declarations or code-snippets can be stored in a separate source file and be included into the programs that require them" was meant to indicate why pre-proessors were used.
 
::::Phix includes are granted a new scope, so if the existing handling was replaced with a simple preprocessor it would break it completely. Basically then my entry is going to have to stand as it is. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 23:48, 6 June 2021 (UTC)
 
:::Some lexical analysis is required to parse #include lines, but not as much as in e.g. PL/1 where you could see: <code>main: procedure; %include "someCode.incl.pl1"; end main;</code>.
7,794

edits