Skip to content

exercism/d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercism D Track

Tests GitHub issues GitHub forks GitHub license

D is one of many programming languages you can study on exercism.org. This repo holds all the instructions, tests, code, & support files for D exercises currently under development or implemented & available for students. If you haven't already, you can check out and study the live language track here.

🌟   The test runner is currently using the DMD compiler v2.109.0.

Filenames

Each exercise is identified by a slug. The slug is all lower-case, and if it is multiple words, it is hyphenated.

E.g. circular-buffer.

The following conventions are used when adding a new exercise:

  • Name the directory $SLUG
  • Place the tests in source/$SLUG.d, replacing hyphens with underscores.
  • Place the example solution in example/$SLUG.d, replacing hyphens with underscores.
  • Add a file named dub.sdl with two lines: name "$SLUG" and buildRequirements "disallowDeprecations".

E.g.

$ tree exercises/circular-buffer
exercises/circular-buffer/
├── dub.sdl
├── source
│   └── circular_buffer.d
└── example
    └── circular_buffer.d

2 directories, 3 files

Contributing

If you're having trouble getting this project set up locally, please open an issue and we'll help you get it sorted (and then see about improving the documentation).

There is useful Exercism-wide documentation about contributing to language tracks in the exercism/docs repository.

D icon

The D "Digital Mars" logo is owned by Digital Mars, Inc. Digital Mars, Inc. allows anyone to use, modify and redistribute the logo provided that the copyright holder is properly attributed. The original image is part of the D programming language "dlang.org" source repository, released under version 1.0 of the Boost Software License. We have modified the image, changing the colour scheme, to create the D icon for Exercism.