Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:slashdot and languages (Score 1) 336

Who cares what b.i and d.i are? They are private and in your example inaccessible anyways. If you ignore that than b.i and d.i are both 0. Thats the default initialisation for build-in types when no user defined constructor is available...as in your example. Furthermore class B has no virtual destructor -> You don't inherit from it. It is irrelevant whether B and D are in different compile units or not.

"a constructor for a class is auto generated by the compiler when needed"

What constructor? I know four.

Comment Re:Answer (Score 2) 336

It really is unbelievable how many wannabes bad-mouth C++ here and at the same time show that they don't have the slightest idea what they are talking about. 'Disable RAII' suuuure... I compile my programs always with the -no-crash option so my programs never crash... Never heard of it? Not surprising... it is in pre-standard C++21 and only supported in GCC 7.2 ;-)

Comment Re:How to read f*ucked up code (Score 1) 336

Another one ranting about something he understands nothing about. Not only that, but he comes with unbelievable 'facts' to back his story. So, all classes are QObjects? Making copy constructors for them? If what you said is true and you had the slightest amount of knowledge about what you write, you certainly would not have ranted about not performed shallow copies. Shallow copies... deep copies... irrelevant. Even beginners of Qt learn very fast that QObjects are non-copyable by design. Both copy and assignment constructors are disabled in QObjects. Under those circumstances:

As expected, he also stores instances in containers - which means every now and then the program would give incorrect results with seemingly no predictable occurrences. It doesn't crash, mind, just gives incorrect answers.

Ridiculous to assume that the program only now an then give incorrect results. Since QObjects cannot be copied into a container by value, it can never give correct results.

So I can only give the advice: Don't listen to the parent. He is a liar and has no idea what he is talking about. The usual C++ hater. Probably it's just sour grapes on his part.

Comment Re:No code? Political Science? Techwriter? (Score 1) 117

such as lack of equal opportunity,

Yes, lack of equal opportunity could be a problem. But boys do quite well is this field despite constant discrimination.

teaching girls programming in a segregated environment

Suuure.... and not teaching in a segregated environment = wahhhhh.... our precious snowflakes are disadvantaged by boys.

Comment Re:This begs the question: (Score 1) 117

since programmers are about as easy to get pointed in the same direction as cats.

Idiotic statement. Programmers are easily pointed in the same directions as anyone else: With money. You want to point people, who work for free in an open source project, in the same direction? Yep, a bit more difficult. As it is for any other voluntary working group.

Slashdot Top Deals

Neutrinos have bad breadth.

Working...