Re: How is D doing?

2015-12-24 Thread beck via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 03:30:32 UTC, ShinraTensei wrote: I recently noticed massive increase in new languages for a person to jump into(Nim, Rust, Go...etc) but my question is weather the D is actually used anywhere or are there chances of it dying anytime soon. So far I've tried a

Re: Most performant way of converting int to string

2015-12-24 Thread Ivan Kazmenko via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 19:50:28 UTC, Daniel Kozák wrote: V Tue, 22 Dec 2015 18:39:16 + Ivan Kazmenko via Digitalmars-d-learn napsáno: Does DMD, or Phobos function to!(string), do anything like that? The number of possible bases is not large

Re: What's wrong with my debugger?

2015-12-24 Thread Rainer Schuetze via Digitalmars-d-learn
On 24.12.2015 03:14, Chris wrote: Please see the linked screenshot: http://i.imgur.com/SpkXu5m.png As you can see, the inside, outside and collision arrays don't seem to work with the debugger. They show a bogus lenght and a bogus memory address. Extracting the lenghts to separate variables

Re: Multiple selective imports on one line

2015-12-24 Thread earthfront via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 20:56:39 UTC, Basile B. wrote: This is not available in the grammar. You can still open a duplicate enhancement request. https://issues.dlang.org/show_bug.cgi?id=14704 see also: http://forum.dlang.org/post/trrxoacvpyyqrdfqx...@forum.dlang.org OK. I'm

Re: [DerelictSDL] SDL_RenderCopy does not accept optional arguements when written in a file aside from main

2015-12-24 Thread Lucien via Digitalmars-d-learn
On Thursday, 24 December 2015 at 09:41:39 UTC, Jack wrote: So I have separated my texture rendering methods in another file and have run into a problem hence the title name. #main.d -- void render() { SDL_RenderClear(renderTarget); renderSprite(renderTarget);

[DerelictSDL] SDL_RenderCopy does not accept optional arguements when written in a file aside from main

2015-12-24 Thread Jack via Digitalmars-d-learn
So I have separated my texture rendering methods in another file and have run into a problem hence the title name. #main.d -- void render() { SDL_RenderClear(renderTarget); renderSprite(renderTarget); SDL_RenderPresent(renderTarget); } -- #other_file.d --- void

Re: [DerelictSDL] SDL_RenderCopy does not accept optional arguements when written in a file aside from main

2015-12-24 Thread Jack via Digitalmars-d-learn
On Thursday, 24 December 2015 at 10:42:57 UTC, Lucien wrote: On Thursday, 24 December 2015 at 09:41:39 UTC, Jack wrote: [...] You need a pointer to renderTarget. #other_file.d - module my.sdl.project; import derelict.sdl2.sdl; import derelict.sdl2.image; void

Re: [DerelictSDL] SDL_RenderCopy does not accept optional arguements when written in a file aside from main

2015-12-24 Thread Lucien via Digitalmars-d-learn
On Thursday, 24 December 2015 at 11:32:24 UTC, Jack wrote: On Thursday, 24 December 2015 at 10:42:57 UTC, Lucien wrote: On Thursday, 24 December 2015 at 09:41:39 UTC, Jack wrote: [...] You need a pointer to renderTarget. #other_file.d - module my.sdl.project; import

Re: What's wrong with my debugger?

2015-12-24 Thread Chris via Digitalmars-d-learn
On Thursday, 24 December 2015 at 09:30:24 UTC, Rainer Schuetze wrote: In the locals window, mago displays all instances of variables, but with the same value (which might be some uninitialized value of a different declaration than expected). The Visual Studio debug engine shows different

Re: How is D doing?

2015-12-24 Thread ShinraTensei via Digitalmars-d-learn
On Thursday, 24 December 2015 at 05:44:03 UTC, Craig Dillabaugh wrote: On Thursday, 24 December 2015 at 00:16:16 UTC, rsw0x wrote: On Tuesday, 22 December 2015 at 21:38:22 UTC, ZombineDev wrote: On Tuesday, 22 December 2015 at 17:49:34 UTC, Jakob Jenkov wrote: clip removed C++ because it

Re: [DerelictSDL] SDL_RenderCopy does not accept optional arguements when written in a file aside from main

2015-12-24 Thread Jack via Digitalmars-d-learn
On Thursday, 24 December 2015 at 12:42:11 UTC, Lucien wrote: On Thursday, 24 December 2015 at 11:32:24 UTC, Jack wrote: On Thursday, 24 December 2015 at 10:42:57 UTC, Lucien wrote: [...] I actually have a pointer in the original project but I seem to forgot it when I'm typing this example.