2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1 +1,3 @@
|
|||
The task is to demonstrate the language's ability to include source code from other files.
|
||||
;Task:
|
||||
Demonstrate the language's ability to include source code from other files.
|
||||
<br><br>
|
||||
|
|
|
|||
14
Task/Include-a-file/PowerShell/include-a-file.psh
Normal file
14
Task/Include-a-file/PowerShell/include-a-file.psh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<#
|
||||
A module is a set of related Windows PowerShell functionalities, grouped together as a convenient unit (usually saved in a
|
||||
single directory). By defining a set of related script files, assemblies, and related resources as a module, you can
|
||||
reference, load, persist, and share your code much easier than you would otherwise.
|
||||
#>
|
||||
|
||||
Import-Module -Name MyModule
|
||||
|
||||
|
||||
<#
|
||||
When you dot source a script (or scriptblock), all variables and functions defined in the script (or scriptblock) will
|
||||
persist in the shell when the script ends.
|
||||
#>
|
||||
. .\MyFunctions.ps1
|
||||
4
Task/Include-a-file/Rust/include-a-file-2.rust
Normal file
4
Task/Include-a-file/Rust/include-a-file-2.rust
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extern crate foo;
|
||||
fn main() {
|
||||
foo::some_function();
|
||||
}
|
||||
1
Task/Include-a-file/SNOBOL4/include-a-file.sno
Normal file
1
Task/Include-a-file/SNOBOL4/include-a-file.sno
Normal file
|
|
@ -0,0 +1 @@
|
|||
-INCLUDE "path/to/filename.inc"
|
||||
Loading…
Add table
Add a link
Reference in a new issue