[Issue 16514] std.socket methods are const, and thus cannot be overriden for SSLSocket, for example

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 12 23:32:48 PDT 2016


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

--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
is there any sense in having const methods there at all? anything more complex
than "syscall with fd" will require non-const anyway. besides, Socket is heap
object, and class with VMT, so it isn't supposed to be lightning-fast anyway.
const/nothrow simply adds some "attribute noise" here, without any real
purpose. i think. ;-)

--


More information about the Digitalmars-d-bugs mailing list