Re: readText

2013-06-19 Thread Daemon
On Wednesday, 19 June 2013 at 18:18:18 UTC, Daemon wrote: Was readText removed in later versions of Phobos? I don't have it, yet it appears in the documentation.. Sorry for the false alarm, I accidentally had a different copy. Everything's alright.

Re: readText

2013-06-19 Thread Daemon
On Wednesday, 19 June 2013 at 18:21:09 UTC, Justin Whear wrote: On Wed, 19 Jun 2013 20:18:17 +0200, Daemon wrote: Was readText removed in later versions of Phobos? I don't have it, yet it appears in the documentation.. std.file.readText has been around for a long time and still is. He

readText

2013-06-19 Thread Daemon
Was readText removed in later versions of Phobos? I don't have it, yet it appears in the documentation..

Re: GtkD not working

2013-06-11 Thread Daemon
I don't know your setup but you should usually get some linker error when not linking against the gtkd libraries. Also your first post whould suggest you are using Windows while -L-ldl would link in the Linux dynamic linker. I am using Windows, but adding those thingamajigs still solves the

Re: GtkD not working

2013-06-11 Thread Daemon
I've been checking stack overflow and some blogs and kept trying various things. I finally managed to launch it normally. For anyone who might have had the same problem, the solution is to pass "-L-lgtkd -L-ldl" to the command line. Project -> Properties -> Command Line -> Additional Options.

Re: GtkD not working

2013-06-10 Thread Daemon
Do you get any error messages? None that I know of. It compiles and starts to launch, then just throws an exception.

GtkD not working

2013-06-10 Thread Daemon
Hello, I'd appreciate any help. I downloaded the GtkD sources and built the GtkD.lib using rdmd, so far so good. I have followed the instructions in "Installing on Windows" (editing sc.ini and copying contents of the src folder of GtkD into DMD's src folder, etc.). I also installed the Gtk 3.

Re: Strange output

2013-06-08 Thread Daemon
On Friday, 7 June 2013 at 20:06:32 UTC, H. S. Teoh wrote: On Fri, Jun 07, 2013 at 09:10:53PM +0200, Daemon wrote: The following program is supposed to print out only numbers that are less than 5, yet the number 63 gets printed. On Fri, Jun 07, 2013 at 09:14:00PM +0200, Daemon wrote: >auto

Re: Strange output

2013-06-07 Thread Daemon
On Friday, 7 June 2013 at 19:47:39 UTC, develop32 wrote: On Friday, 7 June 2013 at 19:10:54 UTC, Daemon wrote: The following program is supposed to print out only numbers that are less than 5, yet the number 63 gets printed. module main; import std.stdio; import std.conv; int main(string

Re: Strange output

2013-06-07 Thread Daemon
auto de = find!(delegate(a) { return a < 5; })([10, 11, 15, 16, 27, 20, 2, -4, -17, 8, 64, 6]); Just a clarification, it prints out 64 with the input above, I changed it later just to test it and forgot to update the rest.

Strange output

2013-06-07 Thread Daemon
The following program is supposed to print out only numbers that are less than 5, yet the number 63 gets printed. module main; import std.stdio; import std.conv; int main(string[] argv) { auto de = find!(delegate(a) { return a < 5; })([10, 11, 15, 16, 27, 20, 2, -4, -17, 8, 64, 6]);

Re: Learning D

2013-06-07 Thread Daemon
Thanks for all the fantastic replies, now I'm really glad I asked. Ali, I'm already reading your book and it's pretty good. I've also ordered The D Programming language, so that should be a big help. The only thing that remains is patience I guess. I won't give up on D so easily this time. T

Learning D

2013-06-06 Thread Daemon
Hi there. I am mesmerized by D and I would love to start using it to really learn programming. I've tried it a year ago but failed miserably and went back to C#. The problem I have is that I've been using C# and I feel it left me crippled. I don't understand a lot of the 'mechanical stuff', lik