On Mon, Jun 20, 2011 at 5:13 PM, Kai Meyer <span dir="ltr"><<a href="mailto:kai@unixlords.com">kai@unixlords.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 06/20/2011 03:46 PM, Jose Armando Garcia wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Mon, Jun 20, 2011 at 6:30 PM, Jimmy Cao<<a href="mailto:jcao219@gmail.com" target="_blank">jcao219@gmail.com</a>> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I helped with something last summer: an attempt at creating a wikibook for<div><div></div><div class="h5"><br>
D. At that time, my D skills were very bad, so I had to concentrate on<br>
learning D first before contributing to more lessons.<br>
One thing that has always bothered me is, there aren't many good *free*<br>
ebooks for learning D.<br>
Well, I'll try to continue what I had started less than a year ago. I'll<br>
probably make many mistakes while writing, so can you guys check on my<br>
progress once in a while?<br>
<a href="http://en.wikibooks.org/wiki/D_(The_Programming_Language)/d2/Lesson_1/Phobos" target="_blank">http://en.wikibooks.org/wiki/<u></u>D_(The_Programming_Language)/<u></u>d2/Lesson_1/Phobos</a><br>
What do you think?<br>
Thanks.<br>
</div></div></blockquote>
<br><div class="im">
Good idea. Small notes:<br>
<br>
*) In the tip section 'write("Hello\n") and writeln("Hello")' are not<br>
the same. writeln and writefln flush. write doesn't.<br>
*) Not sure if you want to also encourage portable code. "\n" should<br>
be replace with newline which I think it is define in std.string.<br>
</div></blockquote>
<br>
I wrote some code a while back that was intended to be portable (between windows and linux anyway). I used 'writef("Hello\n");' a lot, and those always printed correctly on windows. Does writef do something different than write with the '\n' character?<br>
<font color="#888888">
<br>
-Kai Meyer<br>
</font></blockquote></div><br><div>I think \n still shows up as a newline in windows, even though it is supposed to be \r\n.</div>