Created
February 13, 2013 14:34
-
-
Save jpf91/4944997 to your computer and use it in GitHub Desktop.
This file contains 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.string; | |
struct Date | |
{ | |
this(int) | |
{ | |
} | |
short _year = 2; | |
ubyte _month = 1; | |
ubyte _day = 1; | |
} | |
void func(Date d) | |
{ | |
} | |
void main() | |
{ | |
auto b = Date(); | |
func(b); | |
func(Date()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment