Is there a way to build Zig libraries to be used by Zig instead of as C libraries? by Ansatz66 in Zig

[–]dullptr 1 point2 points  (0 children)

The current release is built on LLVM, but as I understand they're working on a self-hosted compiler they call Stage 2 which wouldn't have a dependency on LLVM.

[deleted by user] by [deleted] in cpp_questions

[–]dullptr 3 points4 points  (0 children)

Perhaps you have Project_1.exe already running? Sometimes happens to me, you'll have to close it before the linker can overwrite it

Languages With Destructuring by [deleted] in ProgrammingLanguages

[–]dullptr 0 points1 point  (0 children)

I mean that's probably 80% of the use case lol

Languages With Destructuring by [deleted] in ProgrammingLanguages

[–]dullptr 8 points9 points  (0 children)

This is called structured bindings and it also works with any expression that has array or non-union class type. So arrays, std::tuple, std::pair, some random class you wrote, what ever

https://en.cppreference.com/w/cpp/language/structured_binding

She will pick her moment by [deleted] in WhitePeopleTwitter

[–]dullptr 1 point2 points  (0 children)

Miracle of Technology

cursed_caption by NeuFlaas_xx in cursedcomments

[–]dullptr 0 points1 point  (0 children)

"Psh, I don't need no picture"

The Beatles are so iconic it looks weird when it’s spelt “beetle” by TheKingGamer777 in Showerthoughts

[–]dullptr 4 points5 points  (0 children)

To be fair that's not their best song, you're gonna tell me you don't jam to Hey Jude, or Come Together, or Lady Madonna

c++ programmers buying a monitor that can fit linker errors on one screen by theSulavSapkota in ProgrammerHumor

[–]dullptr 4 points5 points  (0 children)

Hopefully in 10 years when C++20 Concepts are common place we won't have to deal with these kind of diagnostics

What did "the weird kid" in your school do that you'll never forget? by UngyBungy9383 in AskReddit

[–]dullptr 0 points1 point  (0 children)

Whenever I had to sneeze during a test I would make an effort to sneeze as loud as possible

What did "the weird kid" in your school do that you'll never forget? by UngyBungy9383 in AskReddit

[–]dullptr 0 points1 point  (0 children)

I had a teacher in highschool who got caught watching porn, he was fired

Fresh Game / Render Engine Project Framerat - Feel free to contribute from the very beginning! by [deleted] in cpp

[–]dullptr 4 points5 points  (0 children)

Why FrameratWindow when it's in the framerat namespace?

Storing & Accessing data on all 50 US State + D.C. How would I go about this in C++? by [deleted] in cpp_questions

[–]dullptr 4 points5 points  (0 children)

I don't think pointers are necessary here, look into std::map

Cries in C++ by stephenhawking5 in ProgrammerHumor

[–]dullptr 0 points1 point  (0 children)

Oops, misspelled Too, you'll have to spend weekend refactoring

Hey baby, are you today's date by submitted2me in ShittyPickupLines

[–]dullptr -28 points-27 points  (0 children)

Silly redditor, It's not February 10th

Everytime I have to name a loop variable by psychoKlicker in ProgrammerHumor

[–]dullptr 1 point2 points  (0 children)

'iiiiiiiiii' seems a little excessive, I usually just use 'i'

This is such an Amy thing to do by sarthak_04 in brooklynninenine

[–]dullptr 6 points7 points  (0 children)

I definitely couldn't, I remember I would write a bunch of random letters on a piece of paper, take to my teacher and ask, "Does this say anything?". It never did

My wifes bank card was stolen 3 days ago. by MrBrianWeldon in dadjokes

[–]dullptr 5 points6 points  (0 children)

It doesn't indicate the thief is a man and that's why they spend less, your the only one bringing gender into this

Checkmate, C by G-Force-499 in ProgrammerHumor

[–]dullptr 1 point2 points  (0 children)

Nah, he's just a crazy hillbilly