Last active
February 29, 2016 10:14
-
-
Save vladdeSV/129948795199fcc366b0 to your computer and use it in GitHub Desktop.
No parenthesis might cause unexpected behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
void main() | |
{ | |
//Causes function number(int) to be called | |
number = 4; | |
//Declare integer number (same name as function) | |
int number; | |
//Set integer number to four. This will not call function number(int) | |
number = 4; | |
} | |
void number(int n){ | |
writeln("printed once, ey?"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Outputs: printed once, ey?