This repository has been archived on 2021-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
4 changed files with
42 additions and
0 deletions
|
|
|
@ -0,0 +1,15 @@
|
|
|
|
|
.dub
|
|
|
|
|
docs.json
|
|
|
|
|
__dummy.html
|
|
|
|
|
docs/
|
|
|
|
|
/example_3
|
|
|
|
|
example_3.so
|
|
|
|
|
example_3.dylib
|
|
|
|
|
example_3.dll
|
|
|
|
|
example_3.a
|
|
|
|
|
example_3.lib
|
|
|
|
|
example_3-test-*
|
|
|
|
|
*.exe
|
|
|
|
|
*.o
|
|
|
|
|
*.obj
|
|
|
|
|
*.lst
|
|
|
|
@ -0,0 +1,10 @@
|
|
|
|
|
{
|
|
|
|
|
"authors": [
|
|
|
|
|
"alexander"
|
|
|
|
|
],
|
|
|
|
|
"copyright": "Copyright © 2021, alexander",
|
|
|
|
|
"description": "Основы работы с функциями",
|
|
|
|
|
"license": "proprietary",
|
|
|
|
|
"name": "example_3",
|
|
|
|
|
"targetPath": "bin"
|
|
|
|
|
}
|
|
|
|
@ -0,0 +1,10 @@
|
|
|
|
|
import std.stdio;
|
|
|
|
|
import fun_;
|
|
|
|
|
|
|
|
|
|
void main()
|
|
|
|
|
{
|
|
|
|
|
uint a = 1;
|
|
|
|
|
double b = 2;
|
|
|
|
|
fun(a, b);
|
|
|
|
|
writeln(a, ' ', b);
|
|
|
|
|
}
|
|
|
|
@ -0,0 +1,7 @@
|
|
|
|
|
module fun_;
|
|
|
|
|
|
|
|
|
|
void fun(ref uint x, double y)
|
|
|
|
|
{
|
|
|
|
|
x = 42;
|
|
|
|
|
y = 3.14;
|
|
|
|
|
}
|