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
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
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
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
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
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
");
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.