On 6/20/17 7:23 AM, Jacob Carlborg wrote:
On 2017-06-20 01:29, Steven Schveighoffer wrote:

I may have misspoke. I mean they didn't depend on the library itself. I think they do depend on the C wrappers.

So for instance, they didn't use FILE *, but instead used read/write/recv/send.

They did use the Posix and Windows API functions. I can see some imports for libc and Posix functions spread out here and there [1], but I'm not too familiar with are system calls and which are not. It's certainly no way near how much is used in Phobos today.

I remember they specifically did not want to depend on anything in the C library.

In windows, they definitely did not depend on C at all, and did not link with msvcrt or any other C runtime. The calls were all to the ntdll.dll. Really this is the way it *should* be in Posix as well, but they just stuff everything into libc.

As it stands, Phobos uses C runtime features extensively, and it would be hard to get rid of the calls.

-Steve
  • libc dependency Honey via Digitalmars-d-learn
    • Re: libc dependency Adam D. Ruppe via Digitalmars-d-learn
      • Re: libc dependency Honey via Digitalmars-d-learn
        • Re: libc depende... Steven Schveighoffer via Digitalmars-d-learn
          • Re: libc dep... Moritz Maxeiner via Digitalmars-d-learn
            • Re: lib... Steven Schveighoffer via Digitalmars-d-learn
              • Re:... H. S. Teoh via Digitalmars-d-learn
              • Re:... Moritz Maxeiner via Digitalmars-d-learn
              • Re:... Jacob Carlborg via Digitalmars-d-learn
                • ... Steven Schveighoffer via Digitalmars-d-learn
                • ... Jacob Carlborg via Digitalmars-d-learn
              • Re:... Steven Schveighoffer via Digitalmars-d-learn
            • Re: lib... Nemanja Boric via Digitalmars-d-learn
              • Re:... Moritz Maxeiner via Digitalmars-d-learn
                • ... Nemanja Boric via Digitalmars-d-learn
                • ... Nemanja Boric via Digitalmars-d-learn
          • Re: libc dep... Honey via Digitalmars-d-learn
            • Re: lib... Russel Winder via Digitalmars-d-learn
            • Re: lib... Jacob Carlborg via Digitalmars-d-learn
              • Re:... Moritz Maxeiner via Digitalmars-d-learn

Reply via email to