[dmd-beta] dmd 2.063 beta 5
Walter Bright
walter at digitalmars.com
Thu May 23 00:43:42 PDT 2013
On 5/23/2013 12:24 AM, Jacob Carlborg wrote:
>
>> Is the message clear in the context of the code it flagged?
>
> The complete error message (move outside of DWT) :
>
> main.d(8): Error: function main.Foo.static_this without 'this' cannot be shared
>
> Yes, I think it's clear enough. It could be a bit more precise, like saying: "
> static method main.Foo.static_this cannot be shared". Do we have a matching
> bugzilla report for this?
Yes, but I don't know which one. The issue is attempting to declare:
shared int foo() { ... }
where shared would apply to the 'this' reference, but there is no 'this'
reference. This was an "accepts invalid code" bug in the compiler.
More information about the dmd-beta
mailing list