template member function confusion

2012-04-08 Thread Francois Chabot
Hello, I've been getting into the language recently, and ror the most part, it's going pretty smoothly. I have finally run into the first major snag that's really making me scratch my head. Mind you, I can easily code around it, but I'd like to understand why it's not working: Given (roughl

Re: template member function confusion

2012-04-08 Thread Francois Chabot
Two issues here. 1. You cannot currently overload a templated function with a non-templated function or vice versa: http://d.puremagic.com/issues/show_bug.cgi?id=1528 This is a bug which should work and should work at some point. Thank you very much for the confirmation that I'm not crazy he

Re: Operator Overloading with class template

2012-04-08 Thread Francois Chabot
On Sunday, 8 April 2012 at 23:14:33 UTC, Eyyub wrote: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't work...why ? http://paste.pocoo.org/show/wy1kDIpqTi2ApRuOxRRb/ Thx. :) As far as I know, there is nothing special about themplate

Re: Operator Overloading with class template

2012-04-08 Thread Francois Chabot
On Sunday, 8 April 2012 at 23:41:51 UTC, Francois Chabot wrote: On Sunday, 8 April 2012 at 23:14:33 UTC, Eyyub wrote: Hello, How can I rewrite the exemple 2 (http://pastebin.com/q50903Zh) in D lang. ? This source code doesn't work...why ? http://paste.pocoo.org/show/wy1kDIpqTi2ApRu

Re: Errors compiling programs using Derelict 3 under DMD 2

2012-05-12 Thread Francois Chabot
On Saturday, 12 May 2012 at 16:46:05 UTC, Kevin Kowalczyk wrote: I posted on stackoverflow but there hasn't been much in the way of actually resolving my problem, I'll post the link here in the hopes someone can answer my question. http://stackoverflow.com/questions/10564608/using-derelict3-un

Re: Code-File structure

2012-06-12 Thread Francois Chabot
On Tuesday, 12 June 2012 at 07:04:15 UTC, Henrik Valter Vogelius Hansson wrote: Hi! I'm new to D and trying everything out. Got the basics down which are very straightforward and similar to other languages. My professional background is primarily in C/C++-variants and Ruby if it helps. I ha

rdmd failing to generate init data from dependant file

2012-07-02 Thread Francois Chabot
I'm not 100% sure that rdmd is the culprit here, or if it's something OPTLINK isn't picking up. Given the following modules: module a_pkg.a_module; import std.exception ; immutable class Test { string[string] aa ; this( ) { string[string] tmp ;

Immutability vs reference types

2013-05-27 Thread Francois Chabot
Hello, I'm trying to get back into D again. This time around, I'm playing mostly with concurency and parallism, all the while trying to get my code writen in "the D way" as much as possible. I've run into a rather major road block that seems rather nonsensical at face value, so I'm not sure if i'

Re: Immutability vs reference types

2013-05-27 Thread Francois Chabot
On Tuesday, 28 May 2013 at 00:35:32 UTC, Diggory wrote: On Tuesday, 28 May 2013 at 00:24:32 UTC, Francois Chabot wrote: Hello, I'm trying to get back into D again. This time around, I'm playing mostly with concurency and parallism, all the while trying to get my code writen in &quo