Re: Derelict SFML destructor crashes

2012-12-18 Thread Mike Parker
On Tuesday, 18 December 2012 at 07:36:09 UTC, Rob T wrote: On Monday, 17 December 2012 at 04:40:39 UTC, Mike Parker wrote: First, please take all Derelict trouble-shooting problems to the Derelict forums[1]. I'm posting here because I was unable to register with the derelict forum. I

Re: Derelict SFML destructor crashes

2012-12-18 Thread Mike Parker
On Tuesday, 18 December 2012 at 08:14:01 UTC, Mike Parker wrote: On Tuesday, 18 December 2012 at 07:36:09 UTC, Rob T wrote: On Monday, 17 December 2012 at 04:40:39 UTC, Mike Parker wrote: First, please take all Derelict trouble-shooting problems to the Derelict forums[1]. I'm posting here

Re: Derelict SFML destructor crashes

2012-12-18 Thread Jeremy DeHaan
On Tuesday, 18 December 2012 at 07:36:09 UTC, Rob T wrote: On Monday, 17 December 2012 at 04:40:39 UTC, Mike Parker wrote: First, please take all Derelict trouble-shooting problems to the Derelict forums[1]. I'm posting here because I was unable to register with the derelict forum. I

Googling about D

2012-12-18 Thread egslava
Hi! In the beginning, sorry for my very bad English (and, perhaps, for stupid idea too) :) I hope we'll find common language :) I don't program with D a lot, but when I try to find information in google, I use that way: dlang something. And google very often tries to change it to slang

Re: Googling about D

2012-12-18 Thread Dmitry Olshansky
12/18/2012 1:47 PM, egslava пишет: Hi! In the beginning, sorry for my very bad English (and, perhaps, for stupid idea too) :) I hope we'll find common language :) Hi! I think, it would more better, if D had official phrase for searchings. For example:

Re: Googling about D

2012-12-18 Thread Nekroze
On Tuesday, 18 December 2012 at 09:47:24 UTC, egslava wrote: I don't program with D a lot, but when I try to find information in google, I use that way: dlang something. And google very often tries to change it to slang something :) But I think, today, it's the best way. Because you can't look

Re: Need help understanding Tuple

2012-12-18 Thread bearophile
d coder: template Tuple(T...) { alias T Tuple; } enum Bar; class Foo { @Bar int a; } void main() { Foo foo = new Foo; alias Tuple!(__traits(getAttributes, foo.a)) tp; pragma(msg, tp); } As first step, don't use that Tuple, use std.typetuple.TypeTuple instead. It's the same, but

Re: guidelines for parameter types

2012-12-18 Thread Dan
On Tuesday, 18 December 2012 at 06:34:55 UTC, Ali Çehreli wrote: I don't think this is well known at all. :) I have thought about these myself and came up with some guidelines at http://ddili.org/ders/d.en Thanks - I will study it. I see that you have covered also in, out, inout, lazy,

Re: Need help understanding Tuple

2012-12-18 Thread John Chapman
On Tuesday, 18 December 2012 at 11:06:12 UTC, d coder wrote: Greetings Somebody please help me understand why we need the Tuple template in the following code. Does not __traits(getAttributes, foo.a) return a tuple? So what is the Tuple template doing here? Converting a tuple to a tuple?

Re: Googling about D

2012-12-18 Thread egslava
On Tuesday, 18 December 2012 at 11:39:29 UTC, Nekroze wrote: On Tuesday, 18 December 2012 at 09:47:24 UTC, egslava wrote: I don't program with D a lot, but when I try to find information in google, I use that way: dlang something. And google very often tries to change it to slang something :)

Re: Googling about D

2012-12-18 Thread Matthew Caron
On 12/18/2012 08:12 AM, egslava wrote: For example, I try to use that phrase: d programming language sha256 I needed only sha-256 library for my course work. Only. Don't ask me why :) And I really don't know: is there RIGHT library or not? And there are a lot of noise in google results.

Re: Derelict SFML destructor crashes

2012-12-18 Thread Mike Parker
On Tuesday, 18 December 2012 at 07:36:09 UTC, Rob T wrote: On Monday, 17 December 2012 at 04:40:39 UTC, Mike Parker wrote: First, please take all Derelict trouble-shooting problems to the Derelict forums[1]. I'm posting here because I was unable to register with the derelict forum. I

Re: Googling about D

2012-12-18 Thread egslava
Wouldn't one just use OpenSSL? I just looked for something simple like: auto sha = sha256_digest(blah); FYI - I search for d language something. And I couldn't find that easily :( I found some library, but I had been modificating that about two hours. But, please, ask me. Is it hard to add

Re: guidelines for parameter types

2012-12-18 Thread Ali Çehreli
On 12/18/2012 04:51 AM, Dan wrote: On Tuesday, 18 December 2012 at 06:34:55 UTC, Ali Çehreli wrote: I don't think this is well known at all. :) I have thought about these myself and came up with some guidelines at http://ddili.org/ders/d.en Thanks - I will study it. I see that you have

Re: variable x cannot be read at compile time (ctfe)

2012-12-18 Thread bearophile
maarten van damme: How can this be? Maybe there are some mistakes in your assumptions. Bye, bearophilwe

Re: guidelines for parameter types

2012-12-18 Thread H. S. Teoh
On Tue, Dec 18, 2012 at 01:51:31PM +0100, Dan wrote: On Tuesday, 18 December 2012 at 06:34:55 UTC, Ali Çehreli wrote: [...] That makes a difference whether V is a value type or not. (It is not clear whether you mean V is a value type.) Otherwise, e.g. immutable(char[]) v has a legitimate

hello world with glib

2012-12-18 Thread Sonia Hamilton
Hi, I'm trying to get a hello world going to call a C function from [1]glib. I'm having problems compiling, what would the correct command line options? % dmd -I/usr/include/glib-2.0 hello.d -L-L/usr/local/lib -L-lglib-2.0 hello.d(3): Error: undefined identifier GDateTime hello.d(3): Error:

Re: Googling about D

2012-12-18 Thread Sonia Hamilton
On Tue, Dec 18, 2012, at 22:39, Nekroze wrote: On Tuesday, 18 December 2012 at 09:47:24 UTC, egslava wrote: I don't program with D a lot, but when I try to find information in google, I use that way: dlang something. And google very often tries to change it to slang something :) But I

Re: guidelines for parameter types

2012-12-18 Thread Dan
On Tuesday, 18 December 2012 at 18:08:18 UTC, H. S. Teoh wrote: It's not just about whether the function mutates something or not. Sometimes the function counts on the data not changing, ever. For example, if you're implementing a library AA type, you'd want the key to be immutable so that

Re: Derelict SFML destructor crashes

2012-12-18 Thread Rob T
On Tuesday, 18 December 2012 at 13:47:43 UTC, Mike Parker wrote: I *think* I've got it sorted. If you try again, it should work. I tried it again just now and it worked. Thanks! --rt

Re: variable x cannot be read at compile time (ctfe)

2012-12-18 Thread maarten van damme
My only assumption is that -version=runtime doesn't utilize ctfe and the other does. The rest is simple timing on both linux and windows and ctfe is way slower... 2012/12/18 bearophile bearophileh...@lycos.com: maarten van damme: How can this be? Maybe there are some mistakes in your

Re: hello world with glib

2012-12-18 Thread Mike Parker
On Tuesday, 18 December 2012 at 18:24:03 UTC, Sonia Hamilton wrote: [1]glib. I'm having problems compiling, what would the correct command line options? % dmd -I/usr/include/glib-2.0 hello.d -L-L/usr/local/lib -L-lglib-2.0 hello.d(3): Error: undefined identifier GDateTime hello.d(3):

Re: hello world with glib

2012-12-18 Thread Mike Parker
On Tuesday, 18 December 2012 at 19:21:09 UTC, Mike Parker wrote: On Tuesday, 18 December 2012 at 18:24:03 UTC, Sonia Hamilton wrote: [1]glib. I'm having problems compiling, what would the correct command line options? % dmd -I/usr/include/glib-2.0 hello.d -L-L/usr/local/lib -L-lglib-2.0

Re: Help with Out Of Memory D v1.0

2012-12-18 Thread jose isaias cabrera
- Original Message - Greetings! I have this program that zips a file and everything works perfectly, if the files are small enough. But, I am having to zip files that are getting more and more extreme in size and I am running out of memory. Here is the output when executing a

Re: hello world with glib

2012-12-18 Thread Artur Skawina
On 12/18/12 20:23, Mike Parker wrote: On Tuesday, 18 December 2012 at 19:21:09 UTC, Mike Parker wrote: On Tuesday, 18 December 2012 at 18:24:03 UTC, Sonia Hamilton wrote: [1]glib. I'm having problems compiling, what would the correct command line options? % dmd -I/usr/include/glib-2.0

Re: Googling about D

2012-12-18 Thread egslava
Yes, I know it, but I didn't suppose to rename the language :) No! No, no, no! :) I supposed to all d users just add some tag for their libraries. It's simple. It doesn't require change the name of the language. It doesn't change something, except few lines of your CMS code :( Really, why

Re: Googling about D

2012-12-18 Thread Jeremy Sandell
On Tue, Dec 18, 2012 at 4:47 AM, egslava egsl...@gmail.com wrote: Hi! In the beginning, sorry for my very bad English (and, perhaps, for stupid idea too) :) I hope we'll find common language :) I don't program with D a lot, but when I try to find information in google, I use that way: dlang

Re: Googling about D

2012-12-18 Thread lomereiter
I often search libraries on Github — it allows to filter results by language, and probably most D libraries are anyway hosted there.

Re: Writing unicode strings to the console

2012-12-18 Thread Sam Hu
On Tuesday, 18 December 2012 at 00:29:56 UTC, Jeremy DeHaan wrote: I was playing with unicode strings the other day, and have been searching for a way to correctly write unicode to the console. If I try something like: dstring String = さいごの果実; writeln(String); All I get is a

Re: MS ODBC encoding issue

2012-12-18 Thread Sam Hu
On Monday, 10 December 2012 at 14:43:08 UTC, Regan Heath wrote: Ahh, of course. Now I'm having linking issues :p I'm using VisualD and I've added odbc32.lib to the right place, but some symbols are still missing - specifically the W versions. I've dumped the symbols in the DMC odbc32.lib

Re: Writing unicode strings to the console

2012-12-18 Thread monarch_dodra
On Tuesday, 18 December 2012 at 00:29:56 UTC, Jeremy DeHaan wrote: I was playing with unicode strings the other day, and have been searching for a way to correctly write unicode to the console. If I try something like: dstring String = さいごの果実; writeln(String); All I get is a