« first day (368 days earlier)      last day (4799 days later) » 

23:00
oh ghosh
Curious. In the scenario I described, there's no actual UB.
But it's easy to see how all hell can break loose when more objects are involved.
Ok, I'm back.
I see the problem now.
Reference members are usually a bad idea.
Especially if you're planning on having copy ctor and copy assignment.
Yeah, I rarely use reference members. And I have them I usually make my class non-copyable.
Looking at the comments of my post I get the feeling again that experimentation is often looked upon as something bad. I would think it's a great way to gain new insights.
You can also see those comments as insights you missed.
:)
Wohoo, badge.
23:14
I wrote a little "poetry" as a comment to your answer: In my mind I imagine two little boxes and each one has threads attached to it. If you swap the positions of the two boxes you will drag along all the threads that are attached to it. That's the right way to do it. However, I only swapped the contents of the boxes, and left the threads as they were.
I saw that. Made me smile.
Nobody seems to like my question though :(
Oh, I got 3 upvotes now :)
I upvoted and answered it. There's nothing else I can do.
Case closed.
It was fun while it lasted.
But it's over now.
Btw, explicit buffer(unsigned n);
23:18
That's right.
re those DRs, James Dennett (c.s.c++ mod) says "Sending them to comp.std.c++ should still work, assuming someone does pick them up -- the automation is likely broken, and the reliability of the newsgroup overall hasn't been what I'd like, but it mostly works. / You can also send them to a friendly committee member directly if you happen to know of any friendly committee members."
DR = Defect Report?
I was actually playing with the idea that storing reference count as a reference might eliminate a pointer indirection.
23:20
Francis Glassborow says, re the Comeau FAQs recommendation to send to him as last resort, "I'll find someone else on the BSI Panel to take over. "
That's all I got back so far on the issue.
Is C++ moderated still going strong? I've almost never been there anymore since SO came along.
To me SO came before C++, so I never even set foot there :)
I was there when I was making my very first embarrasing steps into the language.
That's a classic.
It's a TDWTF meme actually.
Everything is better with Irish Girl on a wooden table.
Henry Ford must be spinning on his grave right now.
"You can have any black you want, so long as it's grey."
2
23:33
> While spelunking through a cavernous J2EE application, Matt stumbled across this method, buried in a base Client Object class...
Good imagery.
^ My Slow Descent Into Alchoholism (that's the title of the song)
AARgh spent 1hr looking for an error...and it was a bloody semi colon!
@LewsTherin Oh dear!
Was it after a class definition?
Oh my goodness, whose blood was it?
That's what always gets me.
23:40
@Maxpm Yes lol, damn you guessed right. Ugh less time to sleep :(
@RMartinhoFernandes ha some of it is probably mine
One fucking hour... Christ
Well, if it makes you feel better, with time you'll get to the point where you figure those out immediately.
@RMartinhoFernandes I thought I could do that already... but all those bloody .h and .cpp makes it harder
@LewsTherin hmm, new to C++ then? :)
(My)SQL isn't considered a programming language, is it?
I remember staring for hours on a bug. It turned out that I had written result; instead of return result; somewhere. I had been looking at that line for so long and simply didn't see it.
23:44
Oh no
SQL is a programming language.
We just had this discussion yesterday or the day before.
Declarative programming language.
@robjb nope 1yrs I'd say and still know nothing
The standard itself isn't turing complete but most implementations are.
23:44
@Maxpm It is
@LewsTherin I know the feeling
What's Turing-completeness got to do with it?
facepalm
@StackedCrooked yikes that gets me too. Or when you misspell it.
That's what I said when this came up last time.
23:45
If it isn't turing complete it is often not considered a programming language. But that's not really a requirement.
There are non-turing complete programming languages. But at the time, someone used that an example.
Btw, C++ is not Turing-complete.
@RMartinhoFernandes How is C++ not Turing-complete?
It lacks the infinite memory part.
The language does not; the implementations do.
23:47
So do computers.
The infinite memory part is purely theoretical, I thought.
@Maxpm The language specification sets implementation defined limits.
@RMartinhoFernandes Interesting, what are they?
Implementation-defined.
sizeof(void*).
@RMartinhoFernandes Maybe it would be better to ask what part of the standard?
The part that says that pointers must have a fixed size (i.e sizeof(void*) is not "infinite").
23:55
But that's a limit on the size of a single language construct, not overall memory... ?
Certainly you need arbitrarily sized pointers to have infinite memory locations.
What?
No, not again, please.
Ah, I now that you put it that way I see what you mean.
Is modularity important in libraries? That is, should users of my library be able to build just the Foo section, and leave out Bar, Baz and Skeet if they so choose?
23:58
@RMartinhoFernandes no, you just need an infinite external tape
It should be noted that this library is supposed to be as lightweight as possible.
Perhaps I should ask this on Programmers or Stack Overflow.

« first day (368 days earlier)      last day (4799 days later) »