Include a file: Difference between revisions
Content added Content deleted
({{omit from|F Sharp}}) |
(→{{header|D}}: Add Déjà Vu example) |
||
Line 227: | Line 227: | ||
To perform a textual inclusion: |
To perform a textual inclusion: |
||
<lang d>mixin(import("code.txt"));</lang> |
<lang d>mixin(import("code.txt"));</lang> |
||
=={{header|Déjà Vu}}== |
|||
<lang dejavu>#with the module system: |
|||
!import!foo |
|||
#passing a file name (only works with compiled bytecode files): |
|||
!run-file "/path/file.vu"</lang> |
|||
=={{header|Delphi}}== |
=={{header|Delphi}}== |
||
<lang Delphi>uses SysUtils; // Lets you use the contents of SysUtils.pas from the current unit |
<lang Delphi>uses SysUtils; // Lets you use the contents of SysUtils.pas from the current unit |