compiler message cannot convert GType to GType

Brad Roberts braddr at puremagic.com
Sun Mar 12 19:36:27 PST 2006


On Sun, 12 Mar 2006, Ant wrote:

> Ant wrote:
> > gobject/ObjectG.d(389): cannot implicitly convert expression (objectType) of
> > type GType to GType
> > 
> > All unhelpful compiler message should be marked as high priority bugs.
> > this one is just an example
> > 
> > Ant
> 
> Walter, I didn't realized it until now but, as 2 years ago,
> I'm spending as much time fighting dmd as I am actually using it... :(
> 
> hey, but I'm still using it, I didn't go back to c++ ;)
> 
> Ant

Produce a test case that doesn't involve having to download packages and 
examine hundreds or thousands of lines of code, and chances are the 
problem _will_ be fixed.  In this case, you've neither given any 
indication of what the code actually is, where/how to get it, or how to 
reproduce the problem.  Take a look at existing bugs that are getting 
fixed for examples of what I mean.  The basic process:

  1) Make a copy of the file that's producing the error. 
  2) Remove as much code as possible while still producing the error.
  3) Remove imports (potentially copying code from the import into the 
     file you're working on.
  4) Rinse, repeat.

You should strive to get a file that's at max, 10's of lines of code and 
requires no imported modules.  If you don't, then someone else will have 
to.  Waiting for Walter to do it for you pretty much means it isn't going 
to happen.  There's pleanty of already reduced cases that are going to get 
looked at first simply because they're far easier to make progress on.

Make sense?

Later,
Brad



More information about the Digitalmars-d-bugs mailing list