new release?
Koroskin Denis
2korden at gmail.com
Thu Aug 7 16:33:38 PDT 2008
On Thu, 07 Aug 2008 20:28:24 +0400, u <a at where.com> wrote:
> I noticed that GDC in cvs has been updated to D 2.014
>
> But unfortunately D 2.014 has a bug that I cannot use it:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=2154
>
> Is there a plan for a new release? the last release 0.24 is about 1 year
> ago.
> Or anyone know how to update the latest front-end of GDC from DMD
> sources?
>
Not sure if it is a bug or not.
You are trying to access a non-static method. Try one of these solutions:
1) Make the method static:
class A {
public static string toString() {
return "";
}
}
2) change your test code:
...
static if (is(typeof((new E()).toString()) : string)) {
...
Both work for me.
More information about the D.gnu
mailing list