https://issues.dlang.org/show_bug.cgi?id=23487

Bastiaan Veelo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Bastiaan Veelo <[email protected]> ---
There is a PR to adjust the documentation for this
(https://github.com/dlang/phobos/pull/8995) but, as Nicholas Wilson points out,
the correct syntax would be

```d
sharedLog = new shared(FileLogger)(yourFile);
```

This does not work since there is currently no shared constructor. I have tried
to implement one in https://github.com/dlang/phobos/pull/8996, but that's way
harder than I expected. I hope somebody smarter than me will be able to,
because the difficulty of it suggests to me that just casting to shared is not
a good solution.

--

Reply via email to