Created
June 30, 2013 19:46
-
-
Save SiegeLord/5896590 to your computer and use it in GitHub Desktop.
Bugs, bugs everywhere
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 tango.io.Console; | |
import tango.io.Stdout; | |
import tango.io.stream.Buffered; | |
import tango.stdc.stdio; | |
void main() | |
{ | |
auto b = (cast(BufferedOutput)Cout.stream); | |
auto s = Cout.stream; | |
OutputStream s2 = b; | |
//printf("%p %p %p\n", cast(void*)b, cast(void*)s, cast(void*)s2); | |
b.write("Test"); | |
s.write("Test"); | |
s.flush(); | |
} |
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 tango.io.Console; | |
import tango.io.Stdout; | |
import tango.io.stream.Buffered; | |
import tango.stdc.stdio; | |
void main() | |
{ | |
auto b = (cast(BufferedOutput)Cout.stream); | |
auto s = Cout.stream; | |
OutputStream s2 = b; | |
printf("%p %p %p\n", cast(void*)b, cast(void*)s, cast(void*)s2); | |
b.write("Test"); | |
s.write("Test"); | |
s.flush(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment