« first day (132 days earlier)      last day (4834 days later) » 
03:00 - 18:0018:00 - 00:00

3:20 AM
@DeadMG don't most?
@DeadMG actually, debugging in a dynamically-typed language is usually easier: it's easier to inspect objects at runtime in the debugger, insert mock objects/filters, and so forth; whcih static compilation techniques are you talking about?
 
 
4 hours later…
7:28 AM
@Thomas What? Kind of shit debugger are you using? XCode and MSVC both have very rich debug info which allows extensive browsing of objects in the debugger.
reflection makes the rest easier, but unless you're stuck with command line GDB you have no reason to complain about object inspection.
 
 
1 hour later…
sbi
8:41 AM
It seems somone searched for my answers that were downvoted with no explanation and added another (unexplained) downvote to some of them. <sigh/>
 
9:22 AM
hi
university was not very impressed with my sickness claim
:(
 
@DeadMG what did you tell them?
 
the truth
don't think I got marked up for it in any of my modules
0, 30, 42, 54 :(
my parents gonna murder me
don't wanna go home
 
9:58 AM
:( that sucks man
 
hi all
 
sbi
@DeadMG What do those mean??
 
theyre not the numbers from lost
 
10:15 AM
why there exist different behaviour...we can do soemthing like class A{ static const int a=1;//but static int a=1; is now allowed}
first i thought since static variable are not meant to be associated with object..thats why static can not have defination in class
but static const is allowed?
 
do you mean having a static int in a class?
it can be done by going
`class A{
static int i:
};
A::i = 4;`
 
yeah thats fine
 
got a sneaking feeling that when you set the value of A::i you need to specifice the type as well
 
yeah we need to specify because i might be a global variable as well
but why can we initialize static variable inside class though we can initilize static const inside class
can not we*
 
think of it as two separate rule. Static variables must be instanced out side of a class. Const variables must be instanced as you define them. And when you have static const, the const takes charge, so you define as you declare
@user388338 if you press the up arrow, you can edit your last post with in a certain time frame
 
10:21 AM
thanks coshman
i thought there must exist some logic behind it..
 
Their is logic behind everything in C++, just often the logic usually starts with, because it was like that in C
 
hi
 
@DeadMG do they do similar to my uni and have 'Personal Mitigating Circumstances' forms? basically formal sick notes? My uni seem fairly ok giving them out, but I don't think they garante any extra marks, usually more time for course works
@jalf hello
 
at my uni, no one really gave a damn if you skipped classes
or were sick, of course
as long as you passed your exams they were pretty indifferent to everything else you did
 
its strange, my GF's class never cared, but then they where about 200 strong. for my class of like 20 they take registers, and harass you if you don't turn up. But it makes sense, if you do bad it looks bad on them, unless they can show you never turned up
 
10:30 AM
In my time, few profs cared about classes attendance. Labs attendance was another matter.
 
man, reading my notes from the last couple of days is like a stream of consciousness thing. Kind of hard to follow
 
@jalf given up taking notes. Really is no need. just listen up, and look over the slides if you really need to. Nothing we are being taught it that epicly hard
 
oh nah, I'm not talking about classes, just the notes I've jotted down while working on this code :D
 
sbi
@jalf The best notes are those that are encoded in easy-to-understand source code. If you are tempted to annotate your code, chances are that it could be better.
(Yes, I'm aware of exceptions. Some algorithms, for example, are really hard to understand. But those are, indeed, exceptions.)
 
I dug up the code from my MSc thesis I finished a year ago, decided to resume work on it, so a lot of my notes are just rediscovering what seemed so obvious back then, and how the whole thing works :D
 
10:36 AM
@sbi I agree with the sentiment of self documenting code... only for uni, you have to comment everything! its retarded the level of commenting you need to put in
 
along with notes on potential optimizations and improvements
most of my code is easy enough to understand, but getting the high level overview back took a bit of effort, and a fair bit of note-taking while browsing the code
or, I should say, I find most of my code easy enough to understand ;)
I'm sure some people would disagree
 
11:01 AM
it got quiet all of a sudden :o
 
its happens
wait till some one mentions something like ... html not being a programming language, then it will kick of again :D
 
:D
that was a fun discussion :p
 
¬_¬
 
I no longer have a "log out" option in SO. good work, whoever removed that.
 
they've got you now
you're stuck on SO FOREVER
they'll send someone around to collect your soul next week
 
11:09 AM
time for UNI :/
laters
 
have fun
 
sbi
@jalf You know, contrary to popular believe, there's actually folks working in Europe. (And they do so even while Americans sleep!)
 
hehe
I'm starting a new job on tuesday, so enjoying my last days of freedom here :)
quit my old job a month or so ago
 
sbi
@AlfPSteinbach Yeah, I can see that the logout option missing makes it really hard to switch between sockpuppet accounts. (IOW, I miss the problem with that.)
@jalf Oh, I thought you were still studying?
 
well, I've sometimes logged in from someone else's computer to ask a quick question (or just to pass the time). that's kinda iffy if I can't log out again afterwards
@sbi nah, I graduated 10 months ago or so
I'm aware it still says student on my twitter profile and a lot of other places :D
probably on SO as well
 
sbi
11:15 AM
@jalf I suppose you could use their browser's porn mode for that?
Pro tip from @codinghorror: use your browser's porn mode to test unlogged-on user experience. Easier than clearing cookies.
@jalf Oh, I see. Time flies.
 
yeah, true enough
 
sbi
Time flies are the most^Wonly interesting kind of flies, BTW.
@jalf Which one? Or both?
 
@sbi which one what?
 
sbi
@jalf I made two statements, one regarding logging in from other people's browsers, and a philosophical one. And you answered "true enough". Which one of the statements am I to apply that answer two?
 
@sbi to the one about porn mode
I guess it's also true that time flies, of course
 
11:34 AM
3
Q: Difference between creating object with () or without

DirkHi all, i just run into the problem error: request for member ‘show’ in ‘myWindow’, which is of non-class type ‘MainGUIWindow()’ when trying to compile a simple qt-application: #include <QApplication> #include "gui/MainGUIWindow.h" int main( int argc, char** argv ) { QApplication a...

Vote to close, please.
 
that's not a duplicate
 
From the title, it clearly is...
 
yeah, but read the question itself :)
the quesiton you linked to is about constructing objects with or without the (). His question here is about why he gets a compiler error when trying to omit the ()
 
@jalf Nah, it's too early in the morning for that ;)
 
;)
 
11:40 AM
LOL @ deleted answer from here:
> If I point to you, and want to point to your neighbour, do I need to kill you fist?
 
haha
I really wish you could comment on deleted answers sometimes. Some of them are brilliant
 
Yes :)
 
@jalf I'm sure we could find a most vexing parse related question to duplicate to.
 
Almost certainly
but it's not a duplicate of the one @FredOverflow linked to
 
sbi
@FredOverflow Actually, this is a dupe of stackoverflow.com/questions/1424510/…
 
11:45 AM
btw, whatever else you might say about C++, it gives rise to some great names... Most Vexing Parse, and Curiously Recurring Template Pattern, just to name two
I guess that almost compensates for giving us lousy ones like RAII
 
sbi
But I had already voted to close as @FredO suggested, without closely looking at the question. My bad.
 
Yeah, I was that close to doing the same
 
sbi
@jalf Well, now you can cote to close it for the right reason. :)
 
@jalf resource acquisition is initialization, substitution failure is not an error
 
;)
 
11:46 AM
Well, then close it as such, fine with me :)
@jalf My internet has the hickups again, didn't see this one well after I posted RAII :(
 
I guess "perfect forwarding" is a kind of cute term too. Not often a programming language has the balls to call something "perfect"
 
sbi
@FredOverflow Actually, I do have problems with the chat timing out today, too. SO proper works fine, it's just the chat.
@jalf "Behold C++, a programming language with balls!"
2
 
@sbi Maybe it's still catching up with all the NaNs? :)
 
sbi
@FredOverflow It was "NaNd". Most curiously. meta.stackoverflow.com/questions/80404/…
 
my connection from here is pretty awful, so I fully expect the chat timing to be weird
 
11:50 AM
 C
+ +
@sbi Not that is a programming language with balls!
 
@sbi balls. chains. whips. a well stocked dungeon. a rack. and a determination to use them.
 
@sbi The 'd' stands for "days". I meant 's' to denote the plural.
 
on the subject of... that
why the hell does synergy+ only ever copy the clipboard from the client to the server, never server to the client pc
 
sbi
@FredOverflow Yeah, I understood the plural part, but don't understand what "NaNd" stands for. And it is too close to "NaN" for me to form an unbiased guess.
 
In other news, the Battlestar Galactica soundtrack makes excellent background music when coding
 
12:01 PM
Boy, reloading this page took forever.
 
sbi
@FredOverflow Is the rest of the web slow as well?
What browser are you using? I found that whenever SO has hiccups clearing FF's cache usually helps.
 
Normally, I use Opera. Just switched to FF for testing...
@sbi The rest is just fine.
 
@sbi NaN days (I guess there was a FP computation which returned a NaN instead of the desired number of days).
 
When do I get NaNs, besides dividing 0.0 by 0.0?
 
sqrt(-1), iirc
and of course, any operation where one of the operands is NaN
 
12:13 PM
@FredOverflow Unitialized variables, log(-1) and things like that.
 
@jalf What a dirty function, I always pronunce sqrt as "squirt" :-)
3
@AProgrammer Uninitialized variables are UB, not NaN ;)
 
sbi
@AProgrammer Ah, now I understand. Thanks for letting me in!
 
but NaN is one of the ways in which UB can manifest itself
 
@sbi Didn't I already tell you that 'd' stands for "days"? :)
@jalf Of course, since UB can manifest itself in any way.
 
sbi
@FredOverflow Yeah, but it didn't make sense to me. :( Sorry fo being so dense.
 
12:15 PM
@FredOverflow can it be pronounced any other way? ;)
 
@sbi Note to self: be more explicit. Explicit is always good.
@jalf It could be pronunced (note the missing 'o') as "square root", I suppose... but what would be the fun in that?
 
@FredOverflow especially for one argument constructors.
 
@FredOverflow being vague has its advantages too.
 
@sbi Thanks for the browser advice, works much better in FF now.
 
you can always claim that "that's what I meant too!" when it turns out you're wrong, for example
 
12:16 PM
@AProgrammer Exactly! explicit should be the default for constructors.
 
I don't remember who said once (James Kanze?) that C++ had all the features but got all the default wrong.
 
> explicit should be implicit, and implicit should be explicit
@AProgrammer Well, at least default parameters aren't implicit :)
 
@FredOverflow pah, google turns up plenty of dictionaries spelling it with an 'o'. Is it an UK/US english thing?
anyway, I reserve the right to misspell at least 3% of all words
 
sbi
@AProgrammer Sounds very much like James to say that.
 
@jalf Could be, English is not my native language.
 
12:21 PM
same here :)
I guess that 'an' should have been 'a' too, while we're at it
 
sbi
Could you guys please stop deleting messages? It's annoying when you have to read everything the moment it is published, because someone might remove it later, altering the past!
 
@sbi Does it upset the time flies?
2
 
@sbi Well, not everything uttered in this chat room is pure gold... we were just saving your precious time ;)
 
sbi
@jalf Yeah, you could say that!
 
Oh, Stephan T. Lavavej has filmed Part 2 of his advanced STL lecture series yesterday. I hope it will be released today :)
 
12:28 PM
oh, what' the topic?
have to admit I've skipped most of them
 
Not sure, but you can guess from the stuff postet here.
@jalf There is only one part yet :)
 
@FredOverflow well, I meant I skipped most of the "non-advanced" ones
 
You are probably mixing it up with the "Basic STL" lecture series.
Probably because you wouldn't really learn much from those, anyway. But I just love seeing that guy teach :)
 
but glad he's making them. The more C++ programmers get a clue about the STL, the better
 
Maybe the "Basic STL" series even attracted some BASIC programmers? :)
 
12:31 PM
lol
 
(removed)
 
so, bit twiddling trick to zero out the msb of an unsigned integral type?
 
What type is it?
 
I'd like it to be reusable for any unsigned int type
 
foo & 0x7fffffff does the trick for 32 bit integers.
 
12:36 PM
otherwise I'd just hardcode the hex constant
guess I could just shift left 1 bit, and then shift right
 
Well, the mask would be ((your_unsigned_type)-1)>>1 I guess.
 
yeah true
 
Which is a compile-time constant, so no performance loss should occur.
Better add another pair of defensive parens.
Dunno if >> or & has higher precedence.
 
thanks :)
 
The bit twiddler is always at your service!
Just out of curiosity, why do you want to set the MSB to 0 in an unsigned integer?
 
12:42 PM
because I have two fields, each representing a version number, and one of them uses the msb as a flag to store another bit of state, so I need to make sure the msb is cleared on both
in order to compare them
 
If you just need to compare them, you can shift both left by 1.
No need to shift them back.
 
oo, you're full of good ideas today
 
Shifting by one probably is a shorter assembly instruction :)
 
:)
 
On the other hand, if only one of them has the additional bit...
Why are you saying that you need to clear both?
@jalf The micro-optimizer is always at your service as well!
 
12:44 PM
well, I meant that I need to be sure that both are cleared
but obviously one will be cleared in advance
 
Okay, then I would shift both left by 1.
 
coff you mean stream 1 into them.
 
Well, my bit-twiddling skills have developed in the C part of my brain...
 
return ((x ^ y) << 1) == 0; will use one less instruction with gcc on x86_64
back to section 7.1.3
 
You could also say !((x ^ y) << 1) ;)
 
12:47 PM
Well, the comparison is actually <=, not ==
 
@jalf if you want bit-twiddling, you need to be precise :) In that case, I don't think there is something better than (x << 1) <= (y << 1)
(For those who wonder, 7.1.3 of Vol 4A, titled "bitwize tricks and techniques", not of ISO 14882:2003, which would have been "The typedef specifier")
 
wouldn't x <= (y & ((T)-1 >> 1)) be cheaper, given that the mask is a compile time constant? ;)
not that it matters. I think I can afford to lose 2 clock cycles without wrecking performance entirely
 
@jalf My guess is that on superscalar (i.e. post Pentium), it won't make any difference. The additional operation can be make in parallel with an existing one.
 
yeah, agreed
 
If you want to be sure, post on comp.lang.asm.x86 and see what Terje Mathisen says...
It's out of my league to know how would all the x86 variants behave.
 
12:58 PM
but then you're making excuses for a potential inefficiency, rather than promoting a potential optmization
anyway, doesn't matter. I doubt I could create a benchmark that would show a difference either way :)
ok, up for another crazy low-level question? ;)
 
@jalf Not sure in which way there is an inefficiency. I can think of several factors in one way or the other. The most efficient version could very well depend on the processor and the context. That's why I said it was out of my league.
 
are SSE load/store instructions guaranteed to be atomic?
specifically movq
 
Where are those Intel manuals?
 
thought I had them on pdf already
yeah, googling for them now
 
I wasn't searching for hard copy either. I'm pretty sure I saved them, considering the mess Intel web site is to find them. Perhaps at work?
 
sbi
1:10 PM
@jalf What does that mean? That no other operation on the same core could interfere? Or that changes propagate across caches to other cores?
 
@sbi Atomic: that the memory either don't see or see all the effect. (I.E. two write at the same time won't result in fucked up memory).
 
@sbi just that there is no "tearing". The write is either seen as complete, or not at all
I don't care about ordering, or exactly when the change is seen by other cores
 
x86 systems are coherent, thus change always propagate. Programming with non coherent cache is... interesting.
 
baseclass* strat = new derivedclass (conn,request, v_output_data);
					strat->Execute();  // v_output_data is not changed after function call... v_output_data is std::vector<T>??
 
anyway, as far as I know, all load/store operations on x86 are atomic, as long as data is aligned. Just would be nice to be 100% sure before I rely on it
 
sbi
1:14 PM
@jalf Without memory barriers, they might never be seen.
@Tony ??
 
@sbi: yeah, but that's ok. I'll throw in a memory barrier at another point
I just want to make sure that no thread accidentally sees a partially updated value
 
so execute() adds items to v_output_data, however when execute() returns v_output_data contains nothing???
 
@sbi memory barriers is there for ordering read/write on different locations. As as wrote, cache coherency protocols ensure that at the same location they are seen.
hpl.hp.com/techreports/Compaq-DEC/WRL-95-7.pdf is a good introduction on this.
@jalf That's what I remember as well.
 
here is a simple test case for my problem
class base
{
virtual void Execute() = 0;

};

class derived : public base
{
public:
derived::derived(std::vector<int>& v) : v_ints(v){}

void Execute();

private:
std::vector<int> v_ints;

}

void derived::Execute()
{
	int myint = 66;
	v_ints.pushback(myint);

}


main()
{
std::vector<int> ints;
base * myderive = new derived(ints);
myderive->Execute();

//ints is still emtpy here...


}
 
sbi
@Tony That's because you store a copy fo the vector: std::vector<int> v_ints;
That should be either std::vector<int>& v_ints; (note the &, hard to copy the object this belongs to) or std::vector<int>* v_ints; (note the *).
 
1:24 PM
so that it is just a reference
or pointer for that matter
 
hmm, intel docs say that naturally aligned datatypes (including quad words) require only a single memory access. I guess that guarantees atomicity
See any flaws in this interpretation?
 
@jalf I don't.
 
then I hereby declare it to be true!
and if Intel disagrees, they'll just have to change their cpus
 
@jalf And if Intel agree. but AMD and Via don't? :-)
 
then they'll have to change their cpu's as well!
 
1:33 PM
Is it just me or there used to be a pop up warning of new questions tagged C++ which don't appear any more?
@jalf Do you still have the reference?
 
Section 4.1.1 in 253665.pdf
vol.1: basic architecture
 
Ah... I was searching in vol 3A and 3B as they wrote that the ordering white paper has been merged in those.
 
ah
I always found it easier to navigate amd's versions
 
1:56 PM
BTW 8.1.1 in volume 3A explicitly says that from Pentium quadword access aligned on 64 bits boundary is atomic (and from P6 unaligned but in cache line are as well).
 
sweet
 
Friendly templates:
0
Q: make another instatiation's friend of a template class

AProgrammertemplate <typename T> class Foo; template <typename T> int g(Foo<T> const&); template <typename T> class Foo { public: template <typename U> int f(Foo<U> const& p) const { return p.m; } // which friend declaration will allow the above func...

 
@Tony Do you have a question about that?
 
2:39 PM
@FredOverflow I don't have any questions, I just thought it was interesting
 
sbi
@Tony Yeah, that's the way they always told it to the press, but actually, it's wrong. Here is what really happened: stokely.com/lighter.side/unix.prank.html
 
@sbi haha
 
@Tony It is, especially that part about array-to-pointer decay.
Ever since I have read "The Design and Evolution of C++", I find historical details of programming languages very interesting.
 
@FredOverflow They sure help to remember things.
 
I never really understood the point of array-to-pointer decay until I read that paper about the history of C.
Then it made perfect sense.
 
2:53 PM
@FredOverflow cool :)
 
sbi
SO is currently dead for me.
Do you also see that?
Ah, seems to be our DNS service. Nothing works that needs lookup.
 
it's not dead. It's just vitality-impaired
differently alive
 
sbi
@jalf Well, it might be alive, but our DNS is dead, so I can't see whether it's still wiggling. :)
FF seems to be able to keep the chat running without having to look up the address of the chat server. Everything else is dead.
 
So you can get your fix:
host stackoverflow.com
stackoverflow.com has address 64.34.119.12
 
@Tony From a historical perspective, array-to-pointer decay actually does make sense :)
2
Incredible, isn't it? :)
 
3:06 PM
@FredOverflow yes that is quite incredible
 
and you claim it doesn't make sense now?
you might as well state std::string makes no sense
c++ is the way it is.
 
from a "let's make a sane language" point of view, no, it doesn't make any sense
 
If you have some kind of meta value set by which you compare c++s features to some kind of ideal, then very little of it makes sense at all
a sane language wouldn't have
std::
everywhere
or static_cast<Blah>(more confusing syntax);
c++ is layer after layer of design descisions
all influenced by the previous layer
 
both of those serve a purpose, other than backwards compatibility with an idea someone had 40 years ago
 
and ultimately down to c
array-to-pointer decay makes sense today still
a lesson that should have been learn't in inverse
pointer to instance decay could have saved us some tiresome syntax too
and rescued us from having to have invented references
which is really what references represent
 
3:14 PM
that's an entirely different concept
 
you have to be very small minded to say that.
 
gee, thanks
 
you might as well say that the keywords "class" "struct" and "namespace" represent different concepts
 
array to pointer decay makes no sense today because it throws away type information. It's pretty important to know whether you're operating on an array or not. Unifying . and -> syntax for member access, which I assume is what you're talking about, wouldn't cause quite the same problems
no. Array-to-pointer decay makes an entire category of ridiculous errors possible, for basically no benefit. I don't see how the same applies to the distinction between struct and `namespace
 
what. sizeof(something that is now a pointer) ?
 
3:21 PM
yep, or delete vs delete[], or just not knowing the size of your array
you could make a strong case that . and -> should be merged together in a sensible language, since the compiler would know which one to use anyway (although it would mess up any smart pointer implementation), but that is not the same as saying that a pointer should be allowed to "decay" to its pointed-to type
that's just a horrendous idea
and feel free to call me small-minded again, if that makes it easier to swallow
 
@ChrisBecke siweof is one of the contexts where decay doesn't occur (argument of & is another, and then as reference parameters)
 
you know with normal thresholding, you would say if a value is above a 90, make it 100. or maybe if it is below 10 make it 0. what would you call it where you say, if it is bettwen 40 and 60 make it 50, else leave it as what it is?
something like centre threshold?
 
@jalf See Algol 68 and Ada. Algol 68 pushed the idea too far (you never knew how many dereference there was). Ada is about right (ptr.all instead of *ptr make it not totally right).
 
@jalf - how is allowing . to substitute for -> when possible different to allowing it to decay.
perhaps I need some coffee or something, but semantically, "decay" is the process of allowing one type of expression to substitute for another type.
 
@jalf but it makes very clear if you as working on a pointer to data, or the actual data it self. so yes a compiler could look at the data type for you, but it makes it harder as a programmer
 
3:34 PM
if you are working on pointed to data, you are working ON the data.
how you get to the data you are working on should not matter. in a sane language.
 
@ChrisBecke hmm, suppose.
 
@thecoshman Not from my experience with Algol 68 or Ada.
 
namespace::class::StaticPtrMember->ReferenceToSomething.Bob();
should decompose. in a sane language, to
namespace.class.staticptrmember.referencetosomething.bob();
(I lowercased it because i was lazy, not saying sane languages are lowercase)
 
@ChrisBecke a pointer points to the data, how then can it become the data itself?
then you're basically implying there is no reason to have pointers...
 
theres no reason to have two types of references.
is what I will state.
and I said nothing about pointers "becoming" the data.
I spoke of pointers decaying to the equivalent instance access when used to access members.
A a; a.bob();
A* a; a.bob();
 
3:39 PM
yea but A* is a pointer to an instance of A, the other isn't
 
other than the obvious. your point is?
 
A a is an automatic variable
 
A a[];
A* a;
 
that the one just won't degrade into the other, its not the way the system is designed
 
one is a pointer, the other an array.
 
4:13 PM
1
A: Using References in const Methods

AudioDroidHow about this? class LinkedList { private: struct Node { int StoredValue; // ... }; Node NodeReference; const Node*const GetNodeReference(std::size_t Index) const { return &NodeReference; } public: int Get(std::size_t Index) const { const Node *const node =...

Am I making myself clear in the comments?
 
Is there a strongly-typed language in which a||b is equivalent to a?a:b ?
i'm pretty sure not, because you could prove it's not possible. i think.
 
@wilhelmtell c++
 
@AlfPSteinbach in c++ a||b means a?true:false
well roughly
except it also evaluates b
 
@wilhelmtell no, in c++ a||b means a ? true : b, and it only evaluates b if necessary (for the built-in operator)
 
@AlfPSteinbach not it means a?true:b?true:false
i'm trying to say that a||b evaluates to exactly one of true and false.
 
4:24 PM
@wilhelmtell well you can go on like that, instead of a writing a == true and then (a == true) == true and so on (assuming a is bool)
 
@AlfPSteinbach what i'm getting at is asking if there's a strongly-typed language that has this feature in weakly-typed languages.
 
@wilhelmtell you're not making sense
 
in ruby, for example, we say a ||= b
and this only works because a||b evaluates to one of either a or b, and not true or false.
 
@wilhelmtell c++ lacks update operators for the boolean operators. you have them for bitlevel operators, though. that's the legacy from C, where bitlevel...
@wilhelmtell oh, you get conversion to bool in C++
 
@AlfPSteinbach it's like a forced decay to bool
that annoys me
 
4:28 PM
@wilhelmtell yeah. sorry i didn't get your meaning
 
but i thought a little about it now, and i think c++ has no choice because it's strongly typed
because otherwise what would the return type of the function operator||() be?
but still, it would be nice if it would be the return type of a, assuming a and b have the same type.
 
@wilhelmtell i think for a set type you could reasonably define | as union, but || so strongly indicates boolean that I wouldn't use || for that
 
but you rarely rely on true meaning 1
and if you really do need true to mean one then you could say static_cast<bool>(a)
i just find a = a || b so useful
 
@wilhelmtell for what?
 
i donno. as a building block. there's a=a?a:b but i need to type a twice. :p
well it works. i'm just looking for something to complain about
 
4:33 PM
:-)
 
and also because i'm the good soul in this room that tries to maintain the topic as c++ and not the various biological sorts of flies. :p
 
let skynet figure it out
i liked this, a DIY real leather sofa from IKEA:
 
@ina You sound like a domina.
 
5:25 PM
@AlfPSteinbach cute!
 
5:59 PM
oh Christ, I have so much work to do on my project. And I still have other course works to work on. I feel like I have time for project or the other course works.
 
03:00 - 18:0018:00 - 00:00

« first day (132 days earlier)      last day (4834 days later) »