incomprehensible return error bug?

strtr strtr at spam.com
Mon Jan 25 06:59:18 PST 2010


g Wrote:

> g Wrote:
> 
> > strtr Wrote:
> > 
> > > strtr Wrote:
> > > 
> > > > This error also points to the enum which is probably incorrectly used somewhere
> > > > s_def(32) Error: cannot implicitly convert expression (5) of type int to S
> > > > 
> > > > Still searching for the original bug btw :(
> > > 
> > > Found it, also a return type mismatch problem; returning a enum member where the encapsulating struct should have been returned.
> > 
> 
> also , why in the world would you try to convert a manifest constant into a struct

Oh, you misunderstand (I was probably not clear enough :)
I know the bugs in my program were mine, but I think that the incomprehensibility of the error is a bug in dmd. 
They should point of type mismatch location, not to the enum line.
 


More information about the Digitalmars-d-learn mailing list