Ancestors

Toot

Written by velox_vulnus@lemmy.ml on 2024-10-03 at 18:42

What exactly is linkage in C?

https://lemmy.ml/post/20992137

=> More informations about this toot | More toots from velox_vulnus@lemmy.ml

Descendants

Written by pancake@lemmygrad.ml on 2024-10-03 at 20:21

From what I recall, register is ignored by modern compilers (it used to mean that you wanted the variable stored inside CPU registers, but nowadays compilers are smarter and know when to do that). Meanwhile, static is basically a global variable that has the scope of a local variable, while extern is a global variable that you want to explicitly tell the compiler it’s defined in a different compilation unit.

=> More informations about this toot | More toots from pancake@lemmygrad.ml

Written by velox_vulnus@lemmy.ml on 2024-10-04 at 06:16

Any reason why it still exists in C, but was deprecated in C++11 and completely removed in C++17?

=> More informations about this toot | More toots from velox_vulnus@lemmy.ml

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113244958633226929
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
250.827263 milliseconds
Gemini-to-HTML Time
0.606157 milliseconds

This content has been proxied by September (3851b).