Re: opDispatch and template parameters

2010-09-14 Thread Guillaume B.
Simen kjaeraas wrote: > Guillaume B. wrote: > >> Hi, >> >> Is this usage of opDispatch supposed to work: >> >> >> module test.d; >> >> import std.stdio; >> >> struct DispatchTest { >> void opDispatch(st

Re: opDispatch and template parameters

2010-09-13 Thread Guillaume B.
Oh, well: http://d.puremagic.com/issues/show_bug.cgi?id=4856 Guillaume Guillaume B. wrote: > Hi, > > Is this usage of opDispatch supposed to work: > > > module test.d; > > import std.stdio; > > struct DispatchTest { > void opDispa

opDispatch and template parameters

2010-09-08 Thread Guillaume B.
Hi, Is this usage of opDispatch supposed to work: module test.d; import std.stdio; struct DispatchTest { void opDispatch(string name, string otherName)() { writeln(name, ":", otherName); } } void main() { DispatchTest t; //t.testName!("testOtherName")(); t.opD

Re: This just in: authorless TDPL becomes collector's edition

2010-06-21 Thread Guillaume B.
Got mine today from Amazon Canada: collector's edition too. I'll start reading it soon! Guillaume Mike James wrote: > Got my "collectors item" delivered today from Amazon UK. Looks good. I > like the bonus of being able to download a PDF version of TDPL. > > Thanks for all the hard work An

Re: I'm holding it in my hands

2010-06-06 Thread Guillaume B.
Andrei Alexandrescu wrote: > http://erdani.com > > Don't worry, it's SFW :o). > > > Andrei I've already preordered via amazon in Canada but it doesn't seem that it will be shipped before June 14... I'll have to wait! Guillaume

Re: Can D be cute? (Qt)

2010-05-08 Thread Guillaume B.
Justin Johansson wrote: > > May I ask if others on this NG are across Qt and D might be capable of > slotting into some of this market for cross-platform GUI development. > That would be QtD: http://www.dsource.org/projects/qtd Guillaume

Re: The Final(ize) Challenge

2009-05-22 Thread Guillaume B.
"); scope(failure) Log.write("Leaving foo(): failure"); return super.foo(); } } And then, somewhere else: version(WithMagicLog) { C c = new MagicLog!(C); // With logging } else { C c = new C; // Full speed, no logging } int i = c.foo(); Seems pretty useful to me! :) The only problem is writing the MagicLog class. Guillaume B.