Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/d/simple/d1/runme.d
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

28 lines
521 B
D

module runme;
import tango.io.Stdout;
static import example;
void main() {
/*
* Call our gcd() function.
*/
int x = 42;
int y = 105;
int g = example.gcd( x, y );
Stdout.format( "The gcd of {} and {} is {}.", x, y, g ).newline;
/*
* Manipulate the Foo global variable.
*/
// Output its current value
Stdout.format( "Foo = {}", example.Foo ).newline;
// Change its value
example.Foo = 3.1415926;
// See if the change took effect
Stdout.format( "Foo = {}", example.Foo ).newline;
}