mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 05:00:35 +03:00
Make side effect on strongly pure function call
This commit is contained in:
parent
a38148f38e
commit
5b39ab253c
4 changed files with 22 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue