Re: How to include curl.lib?

2019-01-18 Thread Head Scratcher via Digitalmars-d-learn
On Thursday, 17 January 2019 at 20:42:48 UTC, Andre Pany wrote: You do not need to specify curl.lib but you have to bundle your executable with curl.dll. Recent Windows 10 versions might even come with curl.dll but I am not 100% sure. Thank you for your reply, Andre. My computer has curl.exe

Re: How to include curl.lib?

2019-01-17 Thread Head Scratcher via Digitalmars-d-learn
On Monday, 14 January 2019 at 18:45:27 UTC, Head Scratcher wrote: The following text is in the source code for curl.d: Windows x86 note: A DMD compatible libcurl static library can be downloaded from the dlang.org $(LINK2 http://downloads.dlang.org/other/index.html, download archive page). I

How to include curl.lib?

2019-01-14 Thread Head Scratcher via Digitalmars-d-learn
The following text is in the source code for curl.d: Windows x86 note: A DMD compatible libcurl static library can be downloaded from the dlang.org $(LINK2 http://downloads.dlang.org/other/index.html, download archive page). I downloaded that static library. How do I link it into my D projec

UTFException when reading a file

2019-01-11 Thread Head Scratcher via Digitalmars-d-learn
I am using readText to read a file into a string. I am getting a UTFException on the file. It is probably because the file has an extended ANSI character that is not UTF-8. How can I read the file and convert the string into proper UTF-8 in memory without an exception?

Print a copyright symbol

2019-01-11 Thread Head Scratcher via Digitalmars-d-learn
How would I use writeln to print a copyright symbol to the console? I have tried using the unicode code \u00A9, as well as embedding the symbol directly in the string, but I just get garbage when I run it.

Re: Filter and sort associative array

2019-01-11 Thread Head Scratcher via Digitalmars-d-learn
On Friday, 11 January 2019 at 16:06:48 UTC, Alex wrote: On Friday, 11 January 2019 at 16:02:27 UTC, Head Scratcher wrote: Thank you. This works great. What I don't understand is how a key-value pair ends up being a set of strings. Where did the value of the key-value pair get removed? Accordin

Re: Filter and sort associative array

2019-01-11 Thread Head Scratcher via Digitalmars-d-learn
Thank you. This works great. What I don't understand is how a key-value pair ends up being a set of strings. Where did the value of the key-value pair get removed? According to the library documentation, the array function "allocates an array and initializes it with copies of the elements of r

Filter and sort associative array

2019-01-11 Thread Head Scratcher via Digitalmars-d-learn
I am just learning D. So far, I am impressed by its elegance and power. I have an associative array bool[string]. I want to filter it by value (!bool), then extract the keys and sort them. I am struggling with the syntax and working with ranges. I can't find any documentation related to filte