shared and cryptic error messages

Jose Armando Garcia jsancio at gmail.com
Thu Mar 31 12:21:06 PDT 2011


Adding a shared dtor to File doesn't sound like the correct solution.

On Wed, Mar 30, 2011 at 8:14 PM, KennyTM~ <kennytm at gmail.com> wrote:
> On Mar 31, 11 06:34, Jason House wrote:
>>
>> he compiler wants "argument types () shared" instead of "argument types
>> ()". It's an awful error message, and I'm certain I filed a bug for it at
>> least a year ago. In the toy example, mark the destructor as shared, and it
>> should compile.
>
> Yes you have. http://d.puremagic.com/issues/show_bug.cgi?id=3642
>
> Your solution works only if OP wills to dig into Phobos and add a shared
> destructor to File.
>


More information about the Digitalmars-d mailing list