learn D TDPL

2012-01-21 Thread Gour
Hello! I'd like to re-start learning D (from scratch) using TDPL. However, several times I've encountered some message which says that there are some problems in learning the language, like: a) the language is not complete according to the TDPL-spec and b) language implementation differs from

Re: learn D TDPL

2012-01-21 Thread Jonathan M Davis
On Saturday, January 21, 2012 09:11:52 Gour wrote: Hello! I'd like to re-start learning D (from scratch) using TDPL. However, several times I've encountered some message which says that there are some problems in learning the language, like: a) the language is not complete according to

Re: learn D TDPL

2012-01-21 Thread Gour
On Sat, 21 Jan 2012 00:42:18 -0800 Jonathan M Davis jmdavisp...@gmx.com wrote: There might be some other minor things, but for the most part, the language hasn't really been changed from what's described in TDPL. Thank you very much. Your post deserves to be filed in my D-archive here. ;)

Re: learn D TDPL

2012-01-21 Thread Jonathan M Davis
On Saturday, January 21, 2012 09:55:36 Gour wrote: On Sat, 21 Jan 2012 00:42:18 -0800 Jonathan M Davis jmdavisp...@gmx.com wrote: The main problem is that the compiler hasn't caught up to TDPL yet. Yeah, but, at least, those things are tagged as 'tdpl' bugs, right? In theory. I don't

Re: Reading web pages

2012-01-21 Thread Xan xan
The full code is:; //D 2.0 //gdmd-4.6 fitxer dhttpclient = surt el fitxer amb el mateix nom i .o //Usa https://github.com/Bystroushaak/DHTTPClient //versió 0.0.3 import std.stdio, std.string, std.conv, std.stream; import std.socket, std.socketstream; import dhttpclient; int main(string [] args)

Re: Reading web pages

2012-01-21 Thread Xan xan
With png works, with pdf not: ./spider2 http://www.google.com/intl/ca/images/logos/mail_logo.png [a lot of output] $ ./spider2 http://static.arxiv.org/pdf/1109.4897.pdf [Longitud: [Excepció: std.conv.ConvException@/usr/include/d2/4.6/std/conv.d(1640): Can't convert value `HTT' of type string to

Re: Reading web pages

2012-01-21 Thread Bystroushaak
That is really strange - for me, it works with both files. Are you sure, that you can manually download that pdf file? Maybe your provider blocking your connection, or something like that. What type of compiler did you used? On 21.1.2012 13:14, Xan xan wrote: With png works, with pdf not:

Re: learn D TDPL

2012-01-21 Thread Gour
On Sat, 21 Jan 2012 00:42:18 -0800 Jonathan M Davis jmdavisp...@gmx.com wrote: 5. @safe (and therefore SafeD) isn't fully implemented. So, it doesn't necessarily work quite like it's supposed to yet. This one is really interesting for our use of D, so we wonder if there is some estimation when

Re: Reading web pages

2012-01-21 Thread xancorreu
Al 21/01/12 14:28, En/na Bystroushaak ha escrit: That is really strange - for me, it works with both files. Are you sure, that you can manually download that pdf file? Maybe your provider blocking your connection, or something like that. I don't think so. It's arxiv pdf. What type of

Re: learn D TDPL

2012-01-21 Thread Jonathan M Davis
On Saturday, January 21, 2012 14:38:56 Gour wrote: On Sat, 21 Jan 2012 00:42:18 -0800 Jonathan M Davis jmdavisp...@gmx.com wrote: 5. @safe (and therefore SafeD) isn't fully implemented. So, it doesn't necessarily work quite like it's supposed to yet. This one is really interesting for

MySQL

2012-01-21 Thread Mars
Hello everyone. I've been trying to use MySQL in an application on Windows, but I always get Symbol Undefined _mysql_init I've put the lib in the correct folder, so I don't know what the problem might be. I've tried several libs, and tried to compile it myself (always converted using

Re: MySQL

2012-01-21 Thread DNewbie
Please check whether your MySQL lib is 64 bit and your app is 32 bit. On Sat, Jan 21, 2012, at 10:38 PM, Mars wrote: Hello everyone. I've been trying to use MySQL in an application on Windows, but I always get Symbol Undefined _mysql_init I've put the lib in the correct folder, so I don't

Re: MySQL

2012-01-21 Thread Mars
On Saturday, 21 January 2012 at 23:44:12 UTC, DNewbie wrote: Please check whether your MySQL lib is 64 bit and your app is 32 bit. The lib is 32 bit, just like my application.

Re: MySQL

2012-01-21 Thread Ali Çehreli
On 01/21/2012 01:38 PM, Mars wrote: Hello everyone. I've been trying to use MySQL in an application on Windows, but I always get Symbol Undefined _mysql_init I've put the lib in the correct folder, so I don't know what the problem might be. I've tried several libs, and tried to compile it

Re: MySQL

2012-01-21 Thread Mars
On Sunday, 22 January 2012 at 00:50:28 UTC, Ali Çehreli wrote: Are you also including the library on the command line with -L-l? For example, for ncurses: dmd ... -L-lncurses ... And if needed, also -L-L to specify the location of library files for the linker. Ali Yes, I am including