Skip to content

Files

Latest commit

657fb47 · Sep 13, 2019

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Examples

How to run

Examples in this directory can be run simply using a command such as:

rdmd -I"path/to/mach.d" "helloworld/helloworld.d"

Note that the rdmd tool is packaged with the dmd compiler, which can be downloaded from the dlang website here.

What's in this directory

helloworld

Prints "Hello, world!" to stdout.

bottles

Prints the lyrics of 99 Bottles to stdout.

collatz

Asks the user to input a number via stdin, and then outputs the Collatz sequence of that number to stdout.

jsonio

Reads json from an input file, modifies it, and then writes the modified content to an output file.

traversedir

Traverses this examples directory and its subdirectories and finds and prints the paths of all the D source files contained in them.