Is it time for D 3.0?
H. S. Teoh
hsteoh at quickfur.ath.cx
Mon Mar 30 22:34:32 UTC 2020
On Mon, Mar 30, 2020 at 09:28:44PM +0000, Adam D. Ruppe via Digitalmars-d wrote:
> On Monday, 30 March 2020 at 21:24:31 UTC, rikki cattermole wrote:
> > But in this case receive can be @nogc if the internals allow it to be.
>
> it can, this should be a trivial change.
[...]
In the name of getting stuff done instead of just talking about it:
https://github.com/dlang/phobos/pull/7433
[...]
> > The only issue surrounding this is if somebody has decided to
> > inherit from one of the socket classes. Which is kinda a bad thing
> > to do regardless...
>
> It is a useful thing to do - I did for SSL support, for example. But
> my ssl socket child class is also nogc compliant, as I suspect most
> people's would be.
Hmm. Wouldn't this be a problem if changing .receive to @nogc break
existing code that inherits from Socket?
T
--
Let's call it an accidental feature. -- Larry Wall
More information about the Digitalmars-d
mailing list