« first day (356 days earlier)      last day (4598 days later) » 

6:00 PM
@StackedCrooked I don't know... good question
now you've confused me
 
@LewsTherin Do you know C#?
 
139
Q: What are the differences between pointer variable and reference variable in C++?

PrakashI know references are syntactic sugar, so easier code to read and write :) But what are the differences? Summary from answers and links below: A pointer can be re-assigned any number of times while a reference can not be reassigned after initialization. A pointer can point to NULL while refe...

 
@FredOverflow a bit...
 
@LewsTherin Ah well, I thought this was about the general case.
 
Important things to note -- you can have a null pointer, but not a null reference
 
6:01 PM
@LewsTherin C++ T& is like C# ref T, and C++ T* is like C# T for a class type T.
 
@StackedCrooked what happens in that code? I assume it references the original string in person object
 
Anyway, here's something pointers can't do in the context of argument passing: void foo(T const&); foo(T {});
 
References can only be assigned in initialization, pointers can be reassigned to point somewhere new
 
@LewsTherin yep
 
References can never be assigned, only initialized. T& a = b; is not an assignment, despite appearances.
 
6:02 PM
@FredOverflow yeah almost like Java but Java doesn't have a ref keyword I know of
 
Appearances aren't everything.
 
@LucDanton what does that do
 
Passes a temporary T object into a function that takes a reference.
 
@LewsTherin T{} is a temporary much like T(). It's C++11.
 
@LewsTherin So how is it almost like Java than? :) Java has no ref keyword, so there's nothing to compare C++ references to, period.
 
6:03 PM
@LucDanton It's neat how {} can be used to avoid MVP.
 
It's useful when you do std::string s(std::string {}); for instance.
 
oh..cool isn't referencing a temporary a bad thing?
 
@RMartinhoFernandes The only thing neat about list initialization syntax besides filling containers :(
@LewsTherin Depends!
 
@RMartinhoFernandes What is MVP? Model View Pontroller?
 
@FredOverflow that's why it is almost like Java if it had a ref it would be the same
 
6:04 PM
@FredOverflow Most Vexing Parse.
 
@FredOverflow Most Valued Person/Player what have you.
 
How about just std::string s; then?
 
Most Virile P...
 
lol
 
I'm summoning Tony.
 
6:05 PM
@LucDanton depends on?
oh
 
0
Q: Objects in a richtextbox

raym0ndI have a richTextbox Control and I want to insert an object inside the FlowDocument, is there a way I can mask this object to be in the structure but not on the screen so that when I move the cursor to its place its not actually there on the screen and it passes it? I hope you guys understand wha...

 
@LucDanton Really, what's the point of std::string s(std::string {}); when you can just say std::string s;?
 
Oct 2 at 16:33, by R. Martinho Fernandes
If you are new here, please read the newbie hints. Thank you.
 
@RMartinhoFernandes sorry
 
@FredOverflow T t(U {}); except I couldn't think of different standard types that can be constructed one from the other from the top of my head.
So enjoy your placeholders/generic pseudocode.
 
6:07 PM
So you picked the silliest example.
 
@LucDanton I suppose that's an equivalent of creating an anonymous object, wait..that's a temp
 
@LewsTherin On what you are doing. Sometimes passing temporaries is completely innocent, but yes it can trip you up.
@RMartinhoFernandes No, I picked a trivial example.
 
I suppose it is done like that to look modern
 
I reduced the case to T = U, then picked a standard type at random.
@RMartinhoFernandes Oh actually I've found another almost useful case for list initialization, for avoiding cast syntax. Unfortunately I'm not exactly sure how T { expr } works for references, it's hardish to remember.
And that still conflicts with std::initializer_list constructors.
 
@LucDanton did you mean pointers can't do it only n(T{}) or for n(T()) as well?
 
6:14 PM
You can't initialize a pointer with an rvalue, because the & operator only works on lvalues.
 
Does Firefox have some Always on Top feature that can be accidentally activated through a keyboard shortcut? Or is a default?
 
& the address of or & reference
 
the former
 
yeah but when calling the function I could do this n(&T())
that looks so unsafe
 
No, &T() does not compile.
 
6:17 PM
@LewsTherin No, you can't. That's the point.
 
What? That sucks
 
No it doesn't.
 
So why does C++11 allow it
 
Why would you want to pass the address of a temporary?
 
@LewsTherin Again, it doesn't. Check your compiler settings. Or did you mean with references?
 
6:19 PM
@RMartinhoFernandes I'dnt ... @LucDanton yeah with references..if it can with references why not pointers
 
> The result of the unary & operator is a pointer to its operand. The operand shall be an lvalue or a qualified-id.
 
@LewsTherin It doesn't.
 
@LewsTherin BECAUSE REFERENCES AREN'T POINTERS.
 
@LewsTherin It only works with references to const. That makes it somewhat safer.
 
@LucDanton and rvalue references
 
6:20 PM
T& ref = T{}; is an error, T const& ref = T{}; will work. (And also T&& ref = T{};)
 
@FredOverflow ow :(
@LucDanton oh I think I came across that in a book
What is T&& a reference to a reference? Isn't that the same object
 
44
Q: What does T&& mean in C++0x?

paxdiabloI've been looking into some of the new features of C++0x and one I've noticed is the double ampersand in declaring variables, like T&& var. For a start, what is this beast called? (I wish Google would allow us to search for punctuation like this.) What exactly does it mean? At first gl...

10
Q: prolonging the lifetime of temporaries

FredOverflowWhat is the design rationale behind allowing this const Foo& a = function_returning_Foo_by_value(); but not this Foo& a = function_returning_Foo_by_value(); ? What could possible go wrong in the second line (which would not already go wrong in the first line)?

 
T& & would be a reference to a reference (and this shouldn't appear in code).
 
@sbi PLEASE JUST STOP IT
I DON'T CARE
 
@LucDanton at least not directly :)
@JohannesSchaublitb What did he do this time?
 
sbi
6:24 PM
@JohannesSchaublitb Huh?
 
i don't care why the fuck he removed me from the owners list
 
@FredOverflow I have been very extremely careful with that wording and I believe it is correct. (But I wouldn't mind being corrected.)
 
his personal revenge is annoying as fuck, but I don't play this game
thanks!
 
:S
@sbi what the fuck have you done now? :(
 
@LucDanton Well, if U is T&, then I believe U& is valid, and it is equivalent to T&. But you better ask @Johannes to be sure ;)
 
6:25 PM
@FredOverflow But how would it appear in code? :)
 
@JohannesSchaublitb revenge for what?
@LucDanton As a single ampersand ;)
 
as you say "IMNSHO, anyone who isn't mature enough to speak up openly if he objects to a message posted, and rather flags it, should not be a room owner."
I have many opinions too.
 
@FredOverflow And hence you've just proved that T& & would not appear in code. QED.
 
but I did never remove owners from the list solely based on my DNHO
 
@LucDanton Yes, that's what the smiley was meant to imply: you were right.
 
6:26 PM
@LucDanton Proof by opponent ;)
 
sbi
@LewsTherin I think he is referring to chat.stackoverflow.com/transcript/10?m=1623370#1623370. I don't know, though.
 
@FredOverflow he doesn't like me
 
@FredOverflow I regret nothing. I don't often use 'QED'.
 
oh
what is DNHO
 
6:27 PM
@JohannesSchaublitb Nobody here knows anyone, right? Internet personalities tend to be very different from real life personalities.
 
apparently he can look through the wires
 
I have no idea if I would like you in real life, but I enjoy chatting with you, and I like it when you enter this room and say nothing but "guys!" :)
 
@FredOverflow It's "folks".
 
really?
 
6:28 PM
stupid brain of mine
 
sometimes I say "guys!" but more often i say "folks"
i used to say "hello in the crowd"
 
@FredOverflow Why doesn't anyone like when I say "Hey babes" ?
 
but someone didn't like that so I stopped to say so
 
@ManofOneWay Er, because most of us are not babes?
 
when i'm annoyed by girls I say "guys!" and when I've got enough of them I say "folks!"
 
sbi
6:30 PM
@JohannesSchaublitb Now now, young whippersnipper. I freely admit that I went a bit over the top with me being so angry that day. For that I humbly apologize. That doesn't mean, however, that I do not like you.
And it also doesn't mean that I didn't have the right to be angry about you - just not that much. You did wrong, after all, and, as I said, I stand to my decision to remove you from the list of owners for the reasons I have quoted. Now please stop acting so childish, and we can start to bury this incident.
 
BTW im watching foodball now
 
What's foodball?
 
@ManofOneWay I have never seen you say that.
 
sbi
@RMartinhoFernandes Sounds disgusting.
 
6:31 PM
@RMartinhoFernandes like a food fight, but more organized?
 
5
Q: Testicles as food?

Johannes Schaub - litbWhen I read that you can buy and eat testicles I wondered whether I should try it once, since I'm basically open to anything that tastes good. I wonder how I should prepare them. If I buy testicles are they empty or do they still contain the, err, fluid? How to properly make them up so they are...

 
@RMartinhoFernandes Falafel!
 
6:33 PM
@LewsTherin I'd guess and "definitely not humble opinion", but it's definitely only a guess.
 
thanks god those are not translucent
 
Als
WTF, whose testicles are you trying to eat??? @joh
 
> If I buy testicles are they empty or do they still contain the, err, fluid?
 
Als
Human? :O
 
6:33 PM
LMAO
 
I'm not eating them it was just a question out of curiousity
 
omg you guys are weirdos! xD
 
@Als Gosh no.
Don't be silly.
That's cannibalism.
 
Als
err...Am I missing something? @JohannesSchaublitb, asked that Q!
thats much more bad than just cannibalism
 
@Als Other animals have testicles, you know.
 
Als
6:34 PM
i mean testicles....err
 
i would prolly eat some if they are empty and are nicely roasted
 
Als
geez which poor animal are you castrating for your foody whims now?
 
Usually it's bulls. Not cows. Bulls.
 
Is there a testing framework named icles? :)
 
Als
6:35 PM
So you become a fighter like bulls? lol
or you can say, I eat bull balls!
 
in some german TV show the actors had to eat cow balls or something. eww
 
Mann, das ist böse
 
Spanish call them cojones. They are popular there.
 
you could see how the semen would flow outta their mouth
 
@JohannesSchaublitb Cows don't have balls. Do you mean cow bells?
 
Als
6:36 PM
@JohannesSchaublitb: Stop before I puke!
 
@FredOverflow Cows have eyeballs.
 
@JohannesSchaublitb like a blowjob!
 
Als
I can't seem to disassociate the image of falefal = balls posted by @FredOverflow
 
@JohannesSchaublitb Are you sure you weren't watching porn?
 
6:37 PM
sickos
 
@FredOverflow wasn't it kangaroo balls?
 
@Als Falafels are tasty!
@JohannesSchaublitb I have no idea, haven't actively watched television in 8 years.
 
Als
@FredOverflow: I agree!
 
I'll search the youtube video
 
6:38 PM
Don't.
 
Als
@JohannesSchaublitb, Your Q has an answer from an lady Martha who says
 
lol @RMartinhoFernandes you want to
 
Als
"I have only eaten bull testicles once; they were simply coated with black pepper and grilled"
how lovely!
 
@MrAnubis EXPECTO PATRONUS!
 
6:38 PM
@Als Well, they come with their own internal marinade, don't they...
 
Als
maybe Martha's bull was black!
 
Next time ask on yahoo answers for a bit of variety!
 
@LewsTherin Want to what?
 
Als
@FredOverflow: Yup, I ate them once in Sweden, at an Arab food stall
 
@RMartinhoFernandes see the video ;}
 
Als
6:40 PM
@LewsTherin: What video? something showing bull balls?
 
@Als cojones or falafel?
 
I don't eat meat, where can I buy vegetarian testicles? :)
 
Als
falafel
 
omfg
 
Als
meatballs are testicles too?
 
6:40 PM
No.
That's just minced "regular" meat rolled into balls.
 
Als
Thank god
 
Why are you guys talking about BALLS and TESTICles... I see them everyday as drawings on toilet walls lol
 
We're talking about food.
 
@LewsTherin ouch , Avada kedavra!!
 
Als
6:41 PM
@JohannesSchaublitb Question on testicles has some interesting answers
 
@Als indeed
 
Als
Just take the testicles out, Slice it into oval pieces and cook.
Testis makes the cells in semen (sperm), and most of the slimy part of the semen is made in the prostate, seminal vesicle and so on and so forth
 
@FredOverflow LMAO poor bastard..
@MrAnubis Stupefy!
 
Als
Are you planning to do that @JohannesSchaublitb
slice testicles?
ewwww
 
@MrAnubis what's good
 
6:43 PM
@LewsTherin banging my head with variadic templates still lol
@LewsTherin what's up with you?
 
Yikes, I'm still stuck at pointers and references ... and learning Java doesn't help
 
of course not
Java doesn't help with anything
 
Als
@JohannesSchaublitb: Are you hunting down MILFs or something? lol!!
 
6:45 PM
@LewsTherin avaj is like boom boom!
 
@DeadMG yeah lol
@MrAnubis what's avaj
 
Als
@RMartinhoFernandes: Bot, What you heard
 
@LewsTherin An anagram of Java?
 
oh yeah
 
6:46 PM
@LewsTherin reverse(avaj);
 
Lol, "Graf Zahl" is just called "The Count" in the original Sesame Street :)
I always thought it was "Count Count".
 
Als
@JohannesSchaublitb: Look at the answerer Jon Skeet! advicing on kids playing with willis!
 
@MrAnubis yeah xD...
 
but I think it is less painful than C++
 
6:47 PM
gonna download some pr0n , to freshup lol
 
have fun
 
any good links for big-O, omega, theta(with examples) to recommend?
 
@MrAnubis better be good pr0n :P
 
Als
@MrAnubis: Are you afraid to say PORN?
 
@Srle Why are you interested in that? Homework?
 
6:48 PM
@Srle wikipedia
 
@Als I always say PAWN.
 
he will look 20 minutes at the progressbar (hard work) and 4 minutes ... (fun)
 
studyng :P
 
@Als noooooo :P it's very famous abbreviation of porn:P
 
Als
6:49 PM
@JohannesSchaublitb: Do let us know, if you do buy, cook and eat some poor animals testicles!
@MrAnubis: Kids these days hmm
 
@Als i will shoot some pics of evidence
 
@Als lol
 
@Als yeah we are bloody awesome :)
 
Als
@LewsTherin: I didnt say awesome or aweful actually
You are assuming
:)
 
but we know we are awesome:P
 
Als
6:51 PM
Ask Martha to cook ya @JohannesSchaublitb :P
 
No I am saying... kid these days are awesome. Just completing the sentence :P
well most of us kids lol
 
@Als Now, that would be cannibalism too!
 
Als
@LewsTherin: Do you think I need help completing my sentences?
 
Why do you want poor @Johannes to be cooked?
 
6:51 PM
@JohannesSchaublitb i seem to remember an earlier round of testicle discussion. maybe i plonked an innocent guy.
 
@Als Don't we have judges for that? Completing sentences?
 
@Als aww don't do that
 
Als
All in favour of eating testicles say Aye
 
yuck
 
Als
all others say Naye
 
6:52 PM
It's meat.
 
How about popsicles?
 
Als
haha
 
@RMartinhoFernandes (s)he means she should cook me them
 
@FredOverflow lol xD
 
lol
 
6:52 PM
@RMartinhoFernandes Are you a fruitlover, too?
 
Als
haha why am i being referred as She?
 
@FredOverflow No, I'm a carnivore.
 
you are being referred as {she,he}
 
with a '^' between the two words
 
6:53 PM
@RMartinhoFernandes hehe that is awesome :)
 
@johannes yes, confirmed. i plonked poor noah roberts. for this:
 
@AlfPSteinbach yes that was the guy
who said I would like to suck his balls or something
 
Als
@RMartinhoFernandes: You can add another category Ball Eaters with @JohannesSchaublitb's pic eating a juicy testicle
haha
 
@LewsTherin dakshin mannazar!!
 
@MrAnubis eh... Protego! forgot what that meant lol
an healing spell?
 
6:55 PM
lol
 
@LewsTherin lol , avada kedavra!
 
I think we already had this, but it's also awesome:
And yes, it's real :)
 
@AlfPSteinbach wait. were you not aware of my SE question back when you plonked him for that?
 
@MrAnubis I'm glad I blocked it :)
*Reducto!*
 
@LewsTherin Amustache!!
 
Als
@JohannesSchaublitb: What did you mean by " heard you where interested in what testicles feel like in your mouth. I think I could help you with that. "
You were gonna sacrifice your testicle in his mouth?
or Am i getting confused?
 
@MrAnubis PROTEGO!
 
@LewsTherin are you finished of searching that spell?
 
6:58 PM
@AlfPSteinbach but clearly his message was offensive anyway xD
 
@Als It wasn't @Johannes who said that.
 
Als
It was @AlfPSteinbach?
 
@MrAnubis don't know what it is lol
 
Als
Okay Q for @AlfPSteinbach then
 
I have a mustache? :P
 
Als
6:59 PM
What did you mean by " heard you where interested in what testicles feel like in your mouth. I think I could help you with that. "
You were gonna sacrifice your testicle in his mouth?
or Am i getting confused? ---> @AlfPSteinbach
 
@Als It was that Noah Roberts dude. It's right there in the page.
 

« first day (356 days earlier)      last day (4598 days later) »