« first day (1003 days earlier)      last day (4171 days later) » 

23:00
You can still get around it sometimes, with SFINAE.
Return type is part of the signature.
You just can't overload only on return type in C++.
@CatPlusPlus Oh, that contradicts what I thought I knew.
@rightfold ew
23:01
@CatPlusPlus Only for function templates I believe
I don't know what C++ STANDARD says.
signature: <function> name, parameter type list (8.3.5), and enclosing namespace (if any)
see 1.3.17
Function signature in general is its inputs and outputs.
I understand. But technically the standard says the return type is not part of a regular function's signature
If CPLUSPLUS says something different, then blame the authors.
23:03
@AndyProwl Well, thanks for reassuring me on that, and for the new piece to it with the templates.
Still, they probably picked that wording because they use signature in overload rules and return type doesn't matter there.
@chris No problem
It's purely a C++ limitation.
Oh wait, I just remembered the obvious reason.
When you call a function without using the return value, it would have no idea which to pick.
Still, a bit better than never knowing which to pick imo.
I like existing.
23:05
@chris At that point it doesn't even matter, does it?
of course it matters.
the more serious problem is, say, auto x = f();
The overload rules are hellishly complicated as it is.
As a side note, you can overload on return type with Haskell type classes without a problem. :v:
Yeah, auto is a problem there.
Tonight is innuendo night in the office.
user142019
Can I create a directory in /run?
23:07
Yes.
Is multiple inheritance useful?
user142019
Yay PostgreSQL works.
@Jeffrey Sometimes.
An example?
@Jeffrey I've only used it once, so rarely I guess.
23:14
anyone ever seen the function this user has in his profile description
or something like it
user142019
@aaronman prints EMIL.
@aaronman I've seen a few things like it.
I've seen it.
user142019
Also, it's illegal. It needs a newline before EOF.
You just posted it.
user142019
23:16
:>
@rightfold lol
yeah I tried to make one for my name but I used some cheap tricks
user142019
Wait. Is it illegal or UB? Can't recall.
I'm so glad C++11 did away with that.
his is a thing of beauty
user142019
23:17
It's C89.
@rightfold I think ill-formed?
user142019
Or perhaps earlier.
Which is a fancy way of saying UB.
It also refers to compiler errors sometimes.
Prolly shouldn't have put this is the c++ lounge
since it's not valid c++
23:18
@chris Not really.
but the concept is valid
What concept, writing shitty C code?
(It's all C code)
UB part of it is probably calling main().
@CatPlusPlus lol if u think it's shitty code then you'll never appreciate it
There's nothing to appreciate.
@rightfold Hmm, C11 says A source file that is not empty shall end in a new-line character
23:20
@CatPlusPlus the cleverness
Wow, you can write an invalid C program, how clever, have a cookie.
Write a correct C program, now that's a tough cake.
is it
@CatPlusPlus Beside whats invalid about it?
It's relying on undefined behaviour and is syntactically ill-formed.
whats the UB
Oh, and it's unreadable and also useless.
23:24
OK everybody shut up. i can’t find my beer.
Try jumping fridge.
:)
@CatPlusPlus explain to me why there is UB
Apparently C allows you to call main. Oh well, it's still useless.
23:26
That's one area where C++ differs.
who says programs need to be useful
also it's not like the function needs to be main
Fascinating.
user142019
I need to install cowsay on my VPS.
@CatPlusPlus what do you find fascinating
Your inability to detect sarcasm.
23:27
@rightfold that's the first thing I do :)
@CatPlusPlus ;)
@aaronman and your willingness to defend randomness in the face of no attack
you act like I understand what's going on here
user142019
@sehe Actually, my application needs it.
@rightfold cowthink is nice too.
user142019
23:29
ponysay is nice and has COLORS.
user142019
Also, this is very nice.
But hey, continue to be amazed by that code. C programmers aren't known for their high quality bar after all.
@rightfold Very old. Saw that ~2years ago. I'm not so sure why it is so interesting. I saw very little groundbreaking.
You know, beyond: oooh, pwetty diagrams!
I hate c
C
@sehe People like hand holding and step by step instructions.
23:31
@aaronman Watch out: we've got a bad-ass over here
who?
can I call main if the entry point is actually WinMain? :p
@melak47 most windows programs crash so you can do whatever you want
How much does the degree's grade matter while being evaluated for a job?
you mean like GPA
23:38
@Jeffrey Nobody gives a shit about your grades.
yeah grades
Aww fuck. Pissed again, plus shorts with 'stylish' pockets, (ie. don't actually work well for holding stuff), and I've lost a debit card. Cancelled it, so fucked on cookie-purchases until new card :(((
@CatPlusPlus Not even the final one?
@Jeffrey If they do, you don't want to work for them.
@MartinJames What specific kind of fucked?
23:40
@Jeffrey one of my teachers went to FB and said they barely look at grades, but projects are very important
did it involve a large penis or a small one?
@MartinJames Grown ups handle their cookie crunches
@Borgleader The function gets called tons and tons of times and I am wondering whether the switch statement will make the code go slower. — user17762 4 mins ago
Why do pockets open sideways? Sit on a beer garden seat, or in a car, stuff falls out. Moronic design is not restricted to software :(
@DeadMG The bad side - not bought any sexual services.
@CatPlusPlus So people that work their ass off for years to get that 100+ grade (in computer science) are...
23:42
@Rapptz I saw.
often the same people that decided to work hard on project
s
but not always
'Project S' - NSA Prism?
@Borgleader First time I've heard of a switch statement being slow.
@Jeffrey Getting scholarships probably, so not entirely wasting their time.
well, every instruction makes the code go slower, since it has to be executed
23:43
Howdy
But still wasting their time.
@Rapptz The nly way to make it faster is to cache the answer and just use that.
@aaronman My little experience told me exactly the opposite. People that work hard on personal projects are those that care less about the grades.
@CatPlusPlus Oh yeah, I forgot about that. :P
@CatPlusPlus How much does it take to get a computer science degree over there (minimum)?
@DeadMG Well, to me, switch statement if/then or lookup, or whatever, is insignificant to the other massive latencies/delays in my systems.
@Jeffrey my point is that if a lot of people who are really into CS have no problem paying attention in class and doing well
it's not a waste if you have good teachers and want to learn
23:46
@MartinJames Of course it is.
Ahaha uni teachers.
@MartinJames Hence why I find the question idiotic..
@Rapptz, Meh, I'm just fighting a losing battle.
@Rapptz Oh, sorry - I've just got in from the club and didn't understand the history/sarcasm :(
It's definitely not faster, and I guess not everyone likes the look. I might as well delete it.
23:48
@aaronman How much does it take to get a computer science degree over there?
@Rapptz Not only is it idiotic, but I was forced to downvote every single answer there except my own (although I might have to reconsider that guy with the templates, since he was right about the Makefile).
It'll probably just convince the OP that they're right in it being faster.
what do you mean take?
effort
I consider switch statements to be not only fast, but extremely readable. I seriously fail to see the issue with using it there.
@DeadMG I think someone revenge downvoted you
23:49
@aaronman years
How dare anyone downvote Daisy?
@aaronman Weird, here (Italy) it's 3 for the basic degree and 2 more for a master degree
@Rapptz sometimes else if's are omptimized to jump tables in asm
so it might not make any speed diff
If you could turn an if statement to a switch, why would you use the if statements?
23:51
In C++? Because it's less retarded.
@Rapptz I can't always stand writing them when a container is so concise. I suppose it would differ if you have a non-integral selector.
@Rapptz Depends, but switch has some unpleasant side effects with scopes and stuff.
@sehe: what runs noticeably quicker without the switch statement? — Michael Burr 6 mins ago
^ someone completely missed the sarcasm on my comment
@Jeffrey I mean I'm sure you could do it in 3 with no life
even 2
I was responding to the inane "I am wondering whether the switch statement will make the code go slower". Well, obviously: removing the switch will make the code smaller -> faster
23:52
@Rapptz The primary issue is dealing with the case scopes, and default-fallthrough.
Low-level savages.
@aaronman lol
shut up Cat.
@Jeffrey I heard most companies don't care about masters
either
I heard that too
23:53
But i have no job so what do I know
@DeadMG Why is everybody so dense? The OP is worried about the switch executing too often (every time it's called). That changed. Hurrah — sehe 3 secs ago
yup, it's just word of mouth
@sehe what problem is everyone talking about
@aaronman click some links. enjoy! Welcome to the internet
um what links
am I crazy
23:55
Whooahh! I just read the stupid switch question!
I'd rather not stay in the middle of that battleground.
Gotta love those youtube comments
@sehe Your solution is based on some not-necessarily-valid assumptions.
it is a PITA to try to google the right spelling for integer_constant :/
@DeadMG Haha. Joke is on you. You assume assumptions. Wow. Too meta.
23:58
The only person not being active on that question is the OP.
Hehe. The switch question is getting more edits-per-square-minute than any other I can remember!
That's how it usually is.
@MooingDuck what's unclear? +"integer_constant"

« first day (1003 days earlier)      last day (4171 days later) »