Make side effect on strongly pure function call

This commit is contained in:
k-hara 2014-06-14 22:58:03 +09:00
parent a38148f38e
commit 5b39ab253c
4 changed files with 22 additions and 27 deletions

View file

@ -64,7 +64,7 @@ int main(char[][] args)
{
// Bring in unit test for module by referencing function in it
cmp("foo", "bar"); // string
cast(void)cmp("foo", "bar"); // string
cast(void)filenameCharCmp('a', 'b'); // path
cast(void)isNaN(1.0); // math
std.conv.to!double("1.0"); // std.conv