Re: Programming a Game in D? :D

2014-05-27 Thread David via Digitalmars-d-learn
On Saturday, 24 May 2014 at 08:54:53 UTC, ponce wrote: Hi David, Learning programming, learning D and learning 3D are 3 significant endeavours. You might want to begin with http://www.basic4gl.net/ which will get you going with 3D, quite a topic in itself. Then learn D regardless :) So, I'

Re: Programming a Game in D? :D

2014-05-27 Thread Szymon Gatner via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 10:03:36 UTC, David wrote: On Saturday, 24 May 2014 at 08:54:53 UTC, ponce wrote: Hi David, Learning programming, learning D and learning 3D are 3 significant endeavours. You might want to begin with http://www.basic4gl.net/ which will get you going with 3D, quite

What are the best std algo for testing a range implementation ?

2014-05-27 Thread BicMedium via Digitalmars-d-learn
Let's say I have a set of containers, using a D-unfriendly-semantic. They rather use a kind of ADA vocabulary (according to https://en.wikipedia.org/wiki/Deque). I want to make them "range-aware". If the input/output ranges are easy to implement(so it's just reading/writing an element, keepin

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread Chris via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 10:50:54 UTC, BicMedium wrote: Let's say I have a set of containers, using a D-unfriendly-semantic. They rather use a kind of ADA vocabulary (according to https://en.wikipedia.org/wiki/Deque). I want to make them "range-aware". If the input/output ranges are easy to

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-27 Thread KarlHeesch via Digitalmars-d-learn
Hi,everyone, down VisulaD from http://rainers.github.io/visuald/visuald/StartPage.html found the virus:Win32.Troj.Undef.(kcloud) Why? Frank https://www.virustotal.com/en/file/bbd76ddb41a80f0526f6cf1e37a2db2736cfa8f29ed3f5fd7a4336bf4c8bbe43/analysis/ Just 5 of 52. Probably a false alarm. K

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 10:50:54 UTC, BicMedium wrote: Let's say I have a set of containers, using a D-unfriendly-semantic. They rather use a kind of ADA vocabulary (according to https://en.wikipedia.org/wiki/Deque). I want to make them "range-aware". If the input/output ranges are easy to

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread monarch_dodra via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 10:50:54 UTC, BicMedium wrote: Let's say I have a set of containers, using a D-unfriendly-semantic. They rather use a kind of ADA vocabulary (according to https://en.wikipedia.org/wiki/Deque). I want to make them "range-aware". If the input/output ranges are easy to

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread BicMedium via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 11:43:12 UTC, monarch_dodra wrote: On Tuesday, 27 May 2014 at 10:50:54 UTC, BicMedium wrote: Let's say I have a set of containers, using a D-unfriendly-semantic. They rather use a kind of ADA vocabulary (according to https://en.wikipedia.org/wiki/Deque). I want to ma

RandomAccessRange / Mobile Elements

2014-05-27 Thread Johann via Digitalmars-d-learn
Hello, I read in std.range that given a random access range r , r.opIndex(n) should return a reference to the nth element. Is there a qualifier for a "read only" random access range? If not, why? I also don't really get the point of "Mobile Elements", how is "destructively reading" related to

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread monarch_dodra via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 12:18:15 UTC, BicMedium wrote: I mean that those tests are just like testing an interface...). If your interface isn't complete, than it is irrelevant what your implementations are, since the algorithms can't use your ranges anyways. BTW the 2nd and the 3rd assert

Re: RandomAccessRange / Mobile Elements

2014-05-27 Thread monarch_dodra via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 13:04:50 UTC, Johann wrote: Hello, I read in std.range that given a random access range r , r.opIndex(n) should return a reference to the nth element. Is there a qualifier for a "read only" random access range? If not, why? The documentation is a bit wrong. It does

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread BicMedium via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 14:05:56 UTC, monarch_dodra wrote: On Tuesday, 27 May 2014 at 12:18:15 UTC, BicMedium wrote: I mean that those tests are just like testing an interface...). If your interface isn't complete, than it is irrelevant what your implementations are, since the algorithms c

Re: Is there any way to differentiate between a type and an alias?

2014-05-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On Sun, 25 May 2014 18:13:17 -0400, Rene Zwanenburg wrote: On Sunday, 25 May 2014 at 14:40:06 UTC, Steven Schveighoffer wrote: On Sun, 25 May 2014 04:04:09 -0700, Rene Zwanenburg wrote: Given alias GLenum = uint; void glSomeFunction(GLenum, uint); Now, is there some way to differentia

Re: What are the best std algo for testing a range implementation ?

2014-05-27 Thread monarch_dodra via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 16:49:42 UTC, BicMedium wrote: But there could be a templated-unittest for those kind of things...Ranges are relatively straightforward in to use, but when you want to implement one, it's another thing...So it's just about indexes ? And a kind of State machine for ind

Re: Programming a Game in D? :D

2014-05-27 Thread Ryan Voots via Digitalmars-d-learn
On Tuesday, 27 May 2014 at 10:13:13 UTC, Szymon Gatner wrote: I would STRONGLY advise to go with a ready engine like Unity. You still have to learn a lot before you will have just building blocks to create a game like loading and rendering 3D models, a gameplay framework etc etc. Start wit