dmd 1.054 and 2.038 release

Jason House jason.james.house at gmail.com
Thu Dec 31 17:26:56 PST 2009


Steven Schveighoffer Wrote:

> struct S
> {
>      int x;
>      inout(int)* getX() inout { return &x;}
> }
> 
> void main()
> {
>      S s;
>      int *x = s.getX();
> }
> 
> 
> testinout.d(10): Error: function testinout.S.getX () inout is not callable  
> using argument types ()

That's the same error message as http://d.puremagic.com/issues/show_bug.cgi?id=3642
Does that error message ever pop up in a meaningful context???

> testinout.d(10): Error: cannot implicitly convert expression (s.getX()) of  
> type inout(int)* to int*

At least in this case, there are other error messages that give a strong hint to what the real cause is. I'm still crossing my fingers that 3642 can be improved in some way.


More information about the Digitalmars-d-announce mailing list