fix deprecation warnings from latest dmd
[SmugglerRL.git] / src / stdlib.d
blob5697e5464a06e4382305826eecbfc435d5b882fe
1 // useful public d std imports
2 // also internal std import
4 public:
5 // internal std:
6 import logging; // technically
8 // d std:
9 import std.random: choice;
10 import std.conv: to;
11 import std.math: sqrt;
12 import std.container.rbtree: set = redBlackTree;
13 import std.string: format;
14 //import std.algorithm.iteration: split = splitter;
15 import std.array: join, split;
16 import std.container: list = DList;
17 import std.algorithm.comparison: min, max;
18 import std.math: abs, log, pow;
20 pragma(inline, true) float sqrt(int num) {
21 return sqrt(cast(float)num);