Respuestas al mensaje #5,649

  • 🔧 Site instability resolved. You can report double-posts and broken attachments. For bigger issues, use the Technical Grievances thread.
    🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
Marvin

Programming thread

Actually, I think I got it wrong before. We need a purely functional algorithm with Hindley-Milner typing (Ocaml): type parity = | Even | Odd...
7

Programming thread

Sweep it up janny compiler, sweep it up! If you're gonna shit memory all over the place you might as well use a GC language like Go. If you're...
Kosher Dill

Programming thread

Wellllll... https://www.man7.org/linux/man-pages/man3/alloca.3.html (do not do this) It's very common to transfer malloc'ed pointers across...
args

Programming thread

Scopes are a concept of your programming language. Malloc doesn't know such a thing as a scope exists. If you want to guarantee your program will...
3

Programming thread

Lifetime has a formal definition in C and C++, if that's what you mean. The C one is much simpler, so it might be a better starting point. Note...
ADHD Mate

Programming thread

To add to other answers. That's what new/delete do. New will return pointer to initialized object, and delete will call dtor and free memory...
Atrás
Top Abajo