using the module file

This commit is contained in:
Alexander Zhirov 2021-11-08 18:43:59 +03:00
parent 08bdade449
commit 7ab53bee60
2 changed files with 8 additions and 6 deletions

View File

@ -1,10 +1,5 @@
import std.stdio;
void fun(ref uint x, double y)
{
x = 42;
y = 3.14;
}
import fun_;
void main()
{

View File

@ -0,0 +1,7 @@
module fun_;
void fun(ref uint x, double y)
{
x = 42;
y = 3.14;
}