Skip to content

Instantly share code, notes, and snippets.

@jpf91
Created March 1, 2013 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpf91/5064703 to your computer and use it in GitHub Desktop.
Save jpf91/5064703 to your computer and use it in GitHub Desktop.
module e;
struct Date
{
//Make sure this is not a POD
this(this){}
short _year = 2;
ubyte _month = 1;
ubyte _day = 1;
}
Date x;
void setDate(Date d)
{
x = d;
}
void main()
{
Date d;
setDate(d);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment