Created
May 27, 2009 22:14
-
-
Save dnadlinger/118944 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
module Main; | |
struct Struct { | |
static Struct opCall( float value ) { | |
Struct newStruct; | |
newStruct.value = value; | |
return newStruct; | |
} | |
Struct method() { | |
return *this; | |
} | |
float value; | |
} | |
template Template( float value ) { | |
const CONST_STRUCT = Struct( value ).method(); | |
} | |
void main( char[][] args ) { | |
alias Template!( 1 ) foo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment