Skip to content

Instantly share code, notes, and snippets.

@Binero

Binero/app.d Secret

Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Binero/f30e56351baf05f1a2ec to your computer and use it in GitHub Desktop.
Save Binero/f30e56351baf05f1a2ec to your computer and use it in GitHub Desktop.
Compiles as of revision 3!
import std.container;
import std.stdio;
void main()
{
DList!ubyte list1 = DList!ubyte();
list1.insertBack(cast(ubyte) 1);
list1.insertBack(cast(ubyte) 2);
list1.insertBack(cast(ubyte) 3);
foreach(ubyte item; list1[]) {
writeln(item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment