diff --git a/src/example_3/source/app.d b/src/example_3/source/app.d index a552dfd..4dcae97 100644 --- a/src/example_3/source/app.d +++ b/src/example_3/source/app.d @@ -1,10 +1,5 @@ import std.stdio; - -void fun(ref uint x, double y) -{ - x = 42; - y = 3.14; -} +import fun_; void main() { diff --git a/src/example_3/source/fun.d b/src/example_3/source/fun.d new file mode 100644 index 0000000..f19e916 --- /dev/null +++ b/src/example_3/source/fun.d @@ -0,0 +1,7 @@ +module fun_; + +void fun(ref uint x, double y) +{ + x = 42; + y = 3.14; +} \ No newline at end of file