On Saturday, 8 May 2021 at 02:33:44 UTC, Adam D. Ruppe wrote:
On Saturday, 8 May 2021 at 02:29:18 UTC, Stephen Miller wrote:
Is there an easy way to know what the system functions are?

they are imported.

Windows uses winsock:
http://phobos.dpldocs.info/source/std.socket.d.html#L50

posix uses their socket thing:
http://phobos.dpldocs.info/source/std.socket.d.html#L80


So all the leading dot does is go back to the top level - the module - and then if there's a local one defined there, it uses it, otherwise it scans the imports like normal to find it.

See my search results:

http://dpldocs.info/recv

and you can see where the bindings come from.

So it binds to these functions ultimately:

https://man7.org/linux/man-pages/man2/recv.2.html

https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-recv

Thanks. Your answers are always great!

Reply via email to