« first day (99 days earlier)      last day (4852 days later) » 

sbi
11:04 AM
Mhmm. Quite quiet here this weekend. So is everyone (but @DeadMG) enjoying themselves with something other than C++? Sounds good.
Anyway, do we already have a pointer/reference &/* FAQ? (Yeah, I know, I could search myself.) If not, I have a candidate:
Um, that was meant to link to the question:
0
Q: Pointers concept

jaminatorIn C++, what is the difference between: void func(MyType&); // declaration //... MyType * ptr; func(*ptr); // compiler doesnt give error func(ptr); // compiler gives error i thought & represents memory address so // this statement should correct as ptr is only a poin...

 
11:42 AM
@sbi Would be nice. Alas, I’m still working on that damn thesis. ;-(
 
sbi
11:59 AM
@KonradRudolph Oh, bad. How is it going? Any progress? I went and had a beer (or was it three?) with someone last night, anyway, so I don't intent to repeat that exercise tonight. :)
 
sbi
@DeadMG & @AlfPSteinbach Any opinion from you regarding that pointer question?
 
Some progress, though parallel schedules turn out harder than anticipated
getting divide&conquer with work-stealing right is no picnic
 
sbi
@KonradRudolph Ah, wouldn't you know! :)
 
@sbi: What opinion are you expecting?
He got references and pointers confused
straighten him out -> question answered
 
sbi
12:01 PM
@DeadMG Either pro FAQ or contra FAQ.
 
pro FAQ, btw
 
I personally feel that the FAQ is a waste of time, and haven't noted any particular reduction in redundant questions since it came in
 
sbi
@KonradRudolph Yeah, I did interpret your "Would be nice" that way. :)
 
however, I also am not inconvenienced by it and see no reason you shouldn't
 
sbi
@DeadMG Ah, I take that as an "abstain from vote" or however that's called in English, then. :)
 
12:03 PM
lol
yes, something like that ;p
man
I missed a coursework deadline :(
 
@sbi I'm not sure a pointer FAQ is practical. There are so extremely many issues. Perhaps a pointer-versus-reference FAQ?
 
sbi
@AlfPSteinbach I'm not proposing a new FAQ item to be written. :) I'm asking whether a specific question would be worth to be added to the FAQ tag.
 
oh
no way
 
sbi
Personally, I think I have answered a question like this more than once. AFAIR, this one is my best answer.
 
it's a great answer but IMO a poor question
 
sbi
12:06 PM
@DeadMG Bad, I guess?
 
yes
 
sbi
@DeadMG That's no problem, though. We can always improve on a question. But it#s hard to rectify a poor answer being chosen by some "ignorant" person.
@DeadMG And now you have to repeat that course?
 
just post a new q&a like usual
nah
it was only worth 20% of one module
I'm just annoyed because it was a pretty easy coursework and I promised myself that this year, I wouldn't slip on courseworks
my parents would murder me if they knew ;p
I mean, last year, I had to do resits which was kind of scary so
 
sbi
@DeadMG Don't we all know the futility of those new year proposals. :)
 
heh
 
sbi
12:10 PM
@DeadMG Actually, for several reasons I find that way inferior to reusing existing questions.
 
well, I think that I'm coming to the increasing conclusion that university isn't the right learning environment for me
but not really seeing many other choices
why is that? I think that the question isn't very good
 
sbi
@DeadMG They're paying for your education, right? (That's genuine question. I remember as a student fighting for keeping university free of charge in Germany.)
 
uh
we get loans from the government
but it doesn't cover all the costs
 
sbi
I see.
 
if you have parents that have a certain income, the government cuts down your loans
 
sbi
12:13 PM
Hey @Charles, please have a look at the question I linked to further up. I would like to put that into the FAQ tag. Any opinions on that?
BTW, @Konrad, I also put a lot of work into the semester ticket which you now either hate or love. I remember negotiations with the VBB management back in the days. Sadly, when that finally was settled, I wasn't a student anymore. :(
 
@sbi haha. Haven’t got a car, love it ;)
 
@sbi Not sure. It seems like a reasonable candidate but to be honest it doesn't feel frequently enough asked to be FAQ to me.
 
sbi
@KonradRudolph Yeah, I've found students either love it or hate it. I have yet to find someone in between.
 
what's a semester ticket?
 
sbi
@CharlesBailey Yeah, that I feared, which is why I asked here. I don't want this tag flooded with on-off questions. I think have answered something like this several times, but that could just be me remembering the only three times this was ever asked. :)
 
12:18 PM
@sbi: It's asked frequently
 
sbi
@DeadMG It's a public transport ticket for the greater region of Berlin, which you'll get at a reasonable discount as a student. The discount is because every student is required to pay that amount, no matter whether they use it or not. (Most do, but not all.)
Well, that was the original idea, anyway. ISTR it being split to a base fee everyone has to pay and an additional one for actually getting the ticket, though. Or was this just one of the many intermediate discussions? I was long gone then...
@DeadMG Well, that makes one saying yes and one saying no. :)
 
hmm
our region offers a daily thing like that, from memory
but I definitely think that charging every student whether they use it or not is wrong
where's the pay-what-you-use C++ mentality? :P
 
sbi
12:36 PM
@DeadMG This isn't the US, with its abundance of private transport. :) For one, in Berlin, I estimate that at least 85% of all students used public transport to get around the city even before that ticket. So for the overwhelming majority of the students, this amounted to a considerable discount. (And then there's of course many other reasons to encourage public transport at the cost of private transport.)
 
I'm not in the US either :P
 
sbi
In fact, when I said the students I've met either love or hate it, I didn't mention that I met probably no more than one hater for every twenty lovers.
@DeadMG Oh, where are you?
 
well, that sounds much more reasonable
UK
 
sbi
Ah, you were a Brit. Sorry I forgot.
 
"were"? still am :P
 
sbi
12:38 PM
(I swear I remembered the moment I had that question posted.)
 
it's ok
 
sbi
@DeadMG Well, last time I asked you were. How would I know what happened in between? :)
 
lol
 
12:49 PM
lol#
 
hmm what's up folks
 
I'm busy downvoting answers to stackoverflow.com/questions/4773546/…
Actually first downvoted GMan's original answer, then he changed it to completely different, and now I can't remove my downvote! Argh.
 
sbi
@JohannesSchaublitb I'm sbi@#c++. <smug_look/> I'm still trying to get thr grip on IRC, though.
 
need moar sleep
 
sbi
@DeadMG What kind of sleep is that?
 
1:01 PM
REM
the kind where I close my eyes and when I open them again I don't feel the need to go back to sleep
 
sbi
@DeadMG It's called "going to bed". Do you need further instructions as to how to perform this? It's not hard, though. Well, who am I to argue... it seems it is hard.
 
I tried that
it was ineffective
I must be sick, or something, had nightmares for the first time in many years
 
@sbi ohh i see
 
sbi
@DeadMG You're not supposed to measure the "effectiveness" of sleep by the amount of LOC written or bugs fixed. Did you know that?
 
yes
maybe I should, it would be a lot more effective that way
 
sbi
1:08 PM
@JohannesSchaublitb It's kind of dull there, though, ATM.
@DeadMG Well, it must be 1pm in your TZ, no? Perfect time to have a Sunday afternoon nap.
 
you kidding? I only got up an hour ago
 
@sbi yeah sometimes it's dull. othertimes they're talking about horsecocks. and sometimes they are also talking about c++
 
sbi
@DeadMG Ah, then your shifted schedule is the problem? I have troubles sleeping well after 9am. :( (But then I had kids tugging at my sheets around that time for more than a decade...)
 
well
if I get up late, I stay getting up late
last year, I ended up going to sleep at 7am and getting up at 5pm
so I try not to sleep late
 
sbi
@JohannesSchaublitb As you know from me being here, I don't like it if people talk about C++ in the C++ chat room. :) You can't chat about C++ anyway. Chat is for cheerier subjects. :)
 
1:12 PM
i slept until 1pm today
:P
 
Wow, that guy is starting to get on my nerves
 
@sbi there is some culture there: Eelis is the creator of geordi, Kaedenn hosts geordi, PlasmaHH is the guy hosting the channel bot nolyc and V-ille is a committee member of the finnish national body
 
Or he’s a secret envoy by Bill whose aim it is to complete our FAQ
 
does he just post a question about every topic in the book?
 
1:14 PM
@DeadMG It's easier than thinking.
 
heh
 
sbi
@DeadMG I know that. (Went to bed at 5am last night.) I also try not to get up too late the next morning when that happens. (Failed today.) And I know you can't get much done those days.
@JohannesSchaublitb Oh, I see.
 
I reported one post to moderator saying that it's difficult to see the questions as anything other than rep farming as, with a little thought, most of the answers could be got from the tutorial he's posting from.
 
sbi
@KonradRudolph Bill?
 
Neil is who I meant
 
1:17 PM
Even this question at +2 / -8 has a +ve reputation result. stackoverflow.com/questions/4773510/…
 
sbi
@KonradRudolph Young? Gaiman? Stephenson?
 
Butterwhatwashecalled?
 
i've never seen that guy before on SO
 
the guy who threw his arms up in disgust and left
 
is he a new troll?
 
1:17 PM
Butterworth
 
@JohannesSchaublitb Great name for a band!
 
nah
I've gotta find the right music for problem tackling
 
ah you were thinking like "hm, what was that band guy called? Ahhh, Bill!"
haha
 
What do you do if someone edits your question in a way that makes you look like an idiot? :)
 
1:20 PM
you edit it back and inform them of their obvious flaws
preferably in a lengthy fashion filled with profanity, of course
 
sbi
@DeadMG That to get the moderators' attention?
 
indeed
then they can come and observe the limited intellect of the editor and ban him
 
@FredOverflow lol you need to rollback
 
a totally proportional, logical and mature response, I feel
 
sbi
@DeadMG I can see you gaining rep as a moderation candidate here. :)
 
1:22 PM
i would like to have an ignore facility that one can ignore non-moderator users and those users can't edit questions of you anymore then
 
just doin mah job
Vote DeadMG!
 
Dead Moderator Guy
2
 
@JohannesSchaublitb LOL
 
sbi
Haha!!
 
actually
it's been so many years since I picked this moniker that I have no idea what it means anymore
so as far as I know, you're entirely right
 
1:23 PM
@sbi: I like your answer on references/pointers
9
A: Pointers concept

sbi& in front of an object is the address-of operator, yielding the address of the object: &obj & in front of an object that's about to be declared, is a type modifier, modifying the type of that object to be a reference: int &obj; The same goes for *, BTW: In front of a pointer (or...

 
sbi
Aww! When you typed "actually" I was getting quite anxious to finally learn what it means!
 
rofl
oh come on, I was twelve at the time
I don't think it has some sort of deep meaning
 
sbi
@FredOverflow Good. What do you think of the idea to consider this a frequently asked question? (Possibly with improving on the question.) So far, I've got one vote for it being asked frequently and one against. (Besides mine, that is.)
 
the trouble is
if you don't already know the answer
how are you going to search for the question?
the keyword "reference" is one that will mean nothing to you
 
Why are you writing four separate lines?
 
1:26 PM
@DeadMG What Does It Mean??
 
because each one is an independent thought
 
@sbi I would ask the question "What does the symbol & mean?" and then discuss references and pointers (and mention the bitwise-and, of course).
 
man
making a drop-down listbox has so many textures in it
 
@JohannesSchaublitb MG could mean "Matt Groening".
Or "Maschinengewehr".
 
1:28 PM
@FredOverflow ohh!
 
Or "Multiple Ginheritance". I really need a mini-bar in my room, btw.
 
why do you need a minibar
 
Because of the multiple gins I'm going to have? Dunno.
 
not really a drinker
I used to drink quite a bit with friends but not since university
 
Too lazy to go to the kitchen? Yeah, that's it. I should also install a toilet in my room.
 
1:30 PM
and I definitely didn't drink gin at twelve
lol
 
I'm not twelve.
 
sbi
@DeadMG <sigh/> We've hammered at this argument months ago. Please read this: meta.stackoverflow.com/questions/68647/… (In short, it's good to have a good Q/A to link to when closing such as a dupe.)
@FredOverflow But I don't remember having seen any question as to what "reference" means in C++.
 
i was first drunk when i was 19 xD
and we had a nice party back then
 
sbi
@JohannesSchaublitb It's a need he ginherited.
@FredOverflow You say that!
 
1:31 PM
lol
well, I did multiply inherit, as I have two parents
I wonder if biological multiple inheritance is virtual?
must be
 
in general i don't tend to close questions with a link to the faq, except when the questioner looks like he'S somewhat experienced and wants to know all the details
 
sbi
@DeadMG Please learn to assemble between three to six related thoughts, form them into a coherent piece of text, and post that at once. :)
 
since most FAQs only target one group. not one for advanced users and one for complete noobs
 
sbi
@DeadMG It could, but it's shunned in most cultures.
 
lol
 
sbi
1:33 PM
@JohannesSchaublitb That does depend on the answers to the FAQ, though.
 
I was more thinking along the lines of common genes to all humans, rather than specifically like that
 
yeah i wonder how a human would be that only has the genes common to all human
would he be a guy or a girl? haha
 
well, you'd still have all the unique ones
 
sbi
We really need an FAQ explaining why using malloc() is a bad idea in C++: stackoverflow.com/questions/4773990/c-destructors/…
 
class someone : public parent1, public parent2, public virtual human {};
 
sbi
1:36 PM
@DeadMG That would make someone be three humans, though.
 
that's not true
 
that makes logical sense to me
 
that inheritance does not make sense to me at all
or do you mean parent1 and parent2 as two roles. like parent1 is a human parent and parent2 is a .... pet parent?
 
rofl!
 
It's frustrating that it only takes one sympathy vote that costs the voter nothing to undo five good downvotes.
 
1:38 PM
then seeing them as interfaces makes sense to me
tho im not sure whether the interfaces would have distinct methods lol
 
distinct implementations
 
sbi
@CharlesBailey You say that until you're hit by one of the stupid drive-by downvotes.
 
@Charles my proposal on stackoverflow meta that would make the number of voters public, if the votes agree, would partially fix that
 
sbi
@JohannesSchaublitb Huh?
 
oh wait it doesnt lol
i thought the sympathy voter would have to pay for it
 
1:40 PM
I think that if you want to downvote, you should have to either provide a comment or agree with an existing one
 
hmm maybe if one draws an anonymous vote, no matter whether up or downvote, one needs to pay fees
 
much how closing a question works now
 
that will eliminate anonymous sympathy votes haha
 
is it just my connection, or is SO unreliable today?
 
it's your connection
 
1:41 PM
@Alf SO works fine for me
 
chat works fine, but it generally fails to load (i mean serve) question pages
 
sbi
@AlfPSteinbach Not here.
 
you know what really irks me?
how you can't have custom covariance
 
@DeadMG you mean, that there is no language support (except for ptr or ref result type)
 
yeah
it also irks me that you can't have static or dynamic cast overloads
we have these lovely smart pointers that have a pointer interface, except they don't
0
Q: C++ - Strange output

SWEngineerHi, Following the example at: http://www.learncpp.com/cpp-tutorial/86-destructors/ Which is as follows: #include <iostream> #include <cstring> class MyString { private: char *m_pchString; int m_nLength; public: MyString(const char *pchString="") { //find the length of the string /...

why, that questioner, he looks familiar
 
sbi
2:02 PM
@DeadMG Yeah. At first I missed that link and answered. I've now flagged him, as @Charles suggested.
Now he's really stirred them up.
 
stirred up the nest :P
 
 
4 hours later…
6:21 PM
@JohannesSchaublitb: Can't believe your answer got more upvotes than mine :(
 
@DeadMG Re move semantics, you’re of course right
 
If you use rvalues it's not really different. emplace_back(string("lulz")) is as efficient as push_back(string("lulz")) (push_back is overloaded with T&&). It seemed to me the guy didn't really know what emplace_back really does xD
so i tried explaining him a bit
 
but if I’m not mistaken then the original rationale was more or less “how to get rid of that stupid, time-consuming copy all over the standard library?”
 
yeah. and emplace_back allows you to put objects into a container that won't even require a single move. so vector<ifstream> v; v.emplace_back("filename.txt"); doesn't even require move operations while v.push_back(ifstream("filename.txt")) would require a move (if the compiler doesn't optimize it away. I'm not sure how much it optimizes?). However doing v.emplace_back(ifstream("filename.txt")) doesn't make any sense at all xD
 
6:57 PM
oh howard hinnant joined the c++ camp lol. nice
i haven't completely read it, but it seems he found a flaw in the accepted answer: stackoverflow.com/questions/1838368/…
 
7:20 PM
Konrad: The other rationale was perfect forwarding
which is extremely important in it's own right
 
sbi
7:44 PM
@JohannesSchaublitb I was already thinking which other C++ luminaries haven't joined SO yet, so I could setup an account in their name and reap all the rep they would get as a bonus just for showing up, and then change my nick. :)
@JohannesSchaublitb I have cleaned up the formatting a bit.
 
8:13 PM
@sbi ohh i see
 
 
2 hours later…
10:31 PM
@DeadMG you can overload static_cast
 
 
1 hour later…
sbi
11:35 PM
@JohannesSchaublitb Well, I had missed that the beginning of his message was a real quote. I've now fixed that (by copying the quoted text straight from its source). Should be fine now.
@FredNurk Huh??
 
@sbi: static_cast can use every implicit and explicit conversion you define
 
sbi
@FredNurk Ah, that's what you mean. I wouldn't call this "overloading static_cast, though".
 
in the context of the linked message, I would
 
Good to see it became Loung<C++> The other proposed title was retarded.
Hi all, btw.
Either of you two GDI+ gurus?
 
@sbi actually, function overloading allows you to specify additional argument sets which result in a valid call; even though the syntax is different, I can't find a way this "overloading static_cast" doesn't meet that
except one of the "arguments" is a type, but in these days of TMP those lines blur
@DeadMG for dynamic_cast, using a reference type and dereferencing the smart pointer isn't hard, though it is slightly different semantics than the (seemingly more common) pointer-dynamic_cast
that reminds me of something interesting I found recently:
if (T *p = dynamic_cast<T*>(0)) {/*...*/}
else { assert(!p); }
the scope of p isn't as I thought
 
11:59 PM
Gibt es eine offizielle deutsche Übersetzung von "storage duration"?
 

« first day (99 days earlier)      last day (4852 days later) »