Deprecated std.c.*.socket and missing replacement
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jun 27 12:22:02 PDT 2017
On 6/27/17 2:12 PM, Sebastiaan Koppe wrote:
> On Tuesday, 27 June 2017 at 17:58:29 UTC, Jonathan M Davis wrote:
>> Why would you need to remove anything from Phobos? The enum in
>> question is in a deprecated module. All that should need to happen is
>> that the enum be added to the appropriate module in druntime, and then
>> any code that uses it can import it from there.
>>
>> - Jonathan M Davis
>
> Except that the deprecated module (std.c.posix.socket) imports the
> module where I would like to add them (core.sys.posix.netinet.in_),
> resulting in duplicated symbols. Therefor they need to be removed.
Just delete the duplicate symbol, and add public imports of the other
module symbols.
e.g.:
public import core.sys.posix.netinet.in_: IP_ADD_MEMBERSHIP;
-Steve
More information about the Digitalmars-d-learn
mailing list