My thoughts & experiences with D so far, as a novice D coder

2013-03-27 Thread Vidar Wahlberg
I know I'm probably going to upset some people with this, bashing their favourite child and all, but I wanted to let you know the experience I've had with D so far, as a novice D coder with a heavy Java & light C++ background. It's not that I dislike D, in fact there are tons of things I love a

Re: My thoughts & experiences with D so far, as a novice D coder

2013-03-27 Thread Vidar Wahlberg
I'm impressed and most grateful for the feedback, I've learned some new things today :) int i = 5; auto foo = new int[][](i,i); Won't this create an array (with 5 elements) of arrays (with 5 elements), also called a "jagged array"? Where memory is not necessarily continuously allocated and

Re: My thoughts & experiences with D so far, as a novice D coder

2013-03-28 Thread Vidar Wahlberg
To follow up with some new woes I'm currently struggling with: I'm storing some various values in an ubyte array. I discovered that it's probably std.bitmanip I wish to use in order to "convert" i.e. an int to 4 bytes (although I went first to std.conv looking for this feature). So I have "ubyt

Re: My thoughts & experiences with D so far, as a novice D coder

2013-03-28 Thread Vidar Wahlberg
On Thursday, 28 March 2013 at 21:16:32 UTC, Chris Cain wrote: I am completely confused as to why you're doing what you are doing ... std.conv does work (and in the case you've listed, is unnecessary anyway). Try this: import std.stdio, std.conv; void main() { ubyte[] buffer; buffer ~=

Re: My thoughts & experiences with D so far, as a novice D coder

2013-03-28 Thread Vidar Wahlberg
On Thursday, 28 March 2013 at 22:22:49 UTC, Chris Cain wrote: Sorry about the repeated postings ... I'm trying to read & answer it while also dealing with the norovirus :x Been there. Not amusing, I wish you well. "why is this done like this, couldn't it be done much easier?". Maybe. What

Re: My thoughts & experiences with D so far, as a novice D coder

2013-03-28 Thread Vidar Wahlberg
On Friday, 29 March 2013 at 01:13:36 UTC, Jonathan M Davis wrote: In either case, I'd suggest reading this if you want to know more about ranges: http://ddili.org/ders/d.en/ranges.html Thank you, I will read that (when the time is not 0400). I feel I need to stress that this is something that