Thread overview
new release?
Aug 07, 2008
u
Aug 07, 2008
Vincent Richomme
Aug 07, 2008
Moritz Warning
Aug 07, 2008
Koroskin Denis
Aug 08, 2008
u
Aug 08, 2008
Koroskin Denis
August 07, 2008
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?

August 07, 2008
u a écrit :
> 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?
> 
It would be also a good idea to incorporate gcc 4.2.x and 4.3.x patch that some people have posted here...

August 07, 2008
On Thu, 07 Aug 2008 20:15:41 +0200, Vincent Richomme wrote:

> u a écrit :
>> 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?
>> 
> It would be also a good idea to incorporate gcc 4.2.x and 4.3.x patch that some people have posted here...

I have the impression that those patches are fragmented. Maybe someone could look them up/merge them and test them?
August 07, 2008
On Thu, 07 Aug 2008 20:28:24 +0400, u <a@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.
August 08, 2008
== Quote from Koroskin Denis (2korden@gmail.com)'s article
> On Thu, 07 Aug 2008 20:28:24 +0400, u <a@where.com> wrote:
> >
> Not sure if it is a bug or not.
> You are trying to access a non-static method. Try one of these solutions

My intention is to test if a certain method/attribute exist for a particular class; not the actual method invocation on an real object (created statically).

Or this should be done in a different way in D?

BTW, my old code is accept by the latest DMD 2.017 compiler; however, even it generate binary, the behavior is hard to understand (see the attached file in):

http://d.puremagic.com/issues/show_bug.cgi?id=2274

August 08, 2008
On Fri, 08 Aug 2008 04:16:38 +0400, u <a@where.com> wrote:

> == Quote from Koroskin Denis (2korden@gmail.com)'s article
>> On Thu, 07 Aug 2008 20:28:24 +0400, u <a@where.com> wrote:
>> >
>> Not sure if it is a bug or not.
>> You are trying to access a non-static method. Try one of these solutions
>
> My intention is to test if a certain method/attribute exist for a particular
> class; not the actual method invocation on an real object (created statically).
>
> Or this should be done in a different way in D?
>

Yes, you should do it differently.


> BTW, my old code is accept by the latest DMD 2.017 compiler; however, even it
> generate binary, the behavior is hard to understand (see the attached file in):
>
> http://d.puremagic.com/issues/show_bug.cgi?id=2274
>

I already answered.