Re: Upcoming ACCU 2024 Talk: How DLang Improves my Modern C++ and Vice Versa
Kagamin via Digitalmars-d-announce Tue, 16 Apr 2024 04:36:52 -0700
My favorite example is glibc implementation of `putenv` function:
it first finds the '=' character and takes a temporary slice of
the variable name and then employs a tortured null terminated
string cope trying to allocate a string with alloca or malloc,
then copies the slice there and passes the resulting null
terminated string to common `setenv` implementation, then
cleanups the allocated string. And there I thought: "ugh, dude,
what are you doing, just pass the slice as is".
- Upcoming ACCU 2024 Talk: How DLa... Mike Shah via Digitalmars-d-announce
- Re: Upcoming ACCU 2024 Talk... Emmanuel via Digitalmars-d-announce
- Re: Upcoming ACCU 2024 ... M.M. via Digitalmars-d-announce
- Re: Upcoming ACCU 2024 Talk... Andrea Fontana via Digitalmars-d-announce
- Re: Upcoming ACCU 2024 Talk... Walter Bright via Digitalmars-d-announce
- Re: Upcoming ACCU 2024 ... Mike Shah via Digitalmars-d-announce
- Re: Upcoming ACCU 2024 Talk... Kagamin via Digitalmars-d-announce