Shared with no type in Druntime.
Jakob Ovrum
jakobovrum at gmail.com
Sun Apr 29 19:15:54 PDT 2012
On Sunday, 29 April 2012 at 15:21:10 UTC, Jacob Carlborg wrote:
> No, I think it's way better that the DI generator outputs the
> actually type instead of just "shared/auto" and the assignment.
>
> In this case:
>
> shared stdin = &_iob[0];
>
> Should be generated as:
>
> shared File stdin;
>
> Anything to the right of the assignment operator is just an
> implementation detail.
I agree, except to get the right behaviour, I think that must be:
extern shared File stdin;
More information about the Digitalmars-d
mailing list