Jump to content

Compiler/Simple file inclusion pre processor: Difference between revisions

m
→‎{{header|Phix}}: added ionsert_dollars() remark.
m (→‎{{header|Phix}}: coped comment from Wren)
m (→‎{{header|Phix}}: added ionsert_dollars() remark.)
Line 491:
<!--</lang>-->
As the Wren entry eloquently puts it: The above code is limited in the sense that all top-level variables of the imported module (not just the specifically "global" ones) are now visible in the outer scope. Consequently, the code will no longer compile if there are any name clashes.
 
In fact pwa/p2js contains some code (see insert_dollars() in p2js.exw) that renames selected pre-known top-level variables in the standard includes, eg base64.e `aleph` -> `$aleph` to minimise such disruption, however there is (as yet) no such mechanism for user-written include files, though it is on the to-do list.
 
=={{header|Raku}}==
7,806

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.