ACAB includes Paw Patrol #provemewrong #isaidwhatisaid
So in C++, you can have a reference (auto-resolved pointer) as a member of your class, if you initialize that member in the constructor with a like reference. That way you can have several objects that refer to the same thing, with no null pointer problems.

Then you try to inherit from that class with a class that includes an object of that type, not a reference. Easy, just pass a reference to the object to the base class constructor. That way you can have objects like the first, but they all refer to their own thing, with no code duplication.

Except it won't initialize the object until B's constructor is complete.

B::B(A& thingy): myreference(thingy) {
// boy I hope thingy isn't uninitialized data!
performSurgery(thingy.foo);
}
To solve this, you can't. There's no way to do it, and no one can ever write a program in C++ that does.

#C++ #programming #FuckEverything #opinions #ProveMeWrong

"We will leave the state in the same toilets (...) [ … splash … ] ≀ ≀≀≀ where we found it" (an internet tartuffe)

#foolsPoop2 #scatoScience #scatEconomics #prout #quotigram #theorem #proveMeWrong #truthBeWritten #universalHack #microtrottoirdesinternets #revuedepresse #excelArt #powerDot #pixelosophy #minimalist #markdownup #publicDomain #creativeCommons

@pastequeetavocat

 -πŸ‘Š- #punchline

snb-000357 exp-260401 uid-mFhKZg

"Le premier langage universel est la musique . Le deuxiΓ¨me c'est les Γ©mojis …"

#theorem #proveMeWrong #truthBeWritten #universalHack #excelArt #powerDot #pixelosophy #minimalist #markdownup #publicDomain #creativeCommons

 -πŸ‘Š- #punchline

snb-000350 exp-260330 uid-EgiYYj

Je me demande si dans les manifs de droite y a des batucadas aussi. πŸ€”

Postulat : la batucada est incompatible avec la droite.

#proveMeWrong

You know that I always try to be balanced. For example, if the government implements a good policy then I praise it and if it is bad then I criticise it. I won't follow people's words that easily, especially if they are not my friends, you know.

#sofiaflorina #ソフィをフロγƒͺγƒŠ #authority #authorities #becritical #government #governments #thegovernment #appealtoauthority #logicalfallacy #fallacy #fallacies #itstrue #itistrue #thatstrue #thatistrue #reality #thereality #provemewrong #iknowright