« first day (1360 days earlier)      last day (3587 days later) » 

user3010322
2:00 PM
Oh, uh.
 
@ThePhD I never even saw that bullshit warning.
 
Xeo
It's not a bullshit warning?
 
user3010322
@R.MartinhoFernandes Wait, what's the code? colour_t color; in a class inheriting from something with something_t color; ?
 
user1804599
@Ell Sub required?
 
Ell
2:01 PM
@rightfold Sub is a required field in an OpenID Connect ID Token
 
struct foo {
    void f(ns::color color);

    ns::color color;
}
 
Xeo
@R.MartinhoFernandes Nope, still like that warning.
 
user3010322
I want a game like Dark Souls, except it's just continuous boss battles.
 
Just wait till you actually get it.
It's noisy as fuck.
> warning C4459: declaration of '_1' hides global declaration
Why thank you.
 
user3010322
2:03 PM
Lololol. It's like namespacing doesn't exist.
 
@ThePhD Oh, I get what you mean. Yes.
 
what we all want to know is, does it still ICE on every program, ever?
 
> c:\program files (x86)\microsoft sdks\windows\v7.1a\include\dbghelp.h(1540): warning C4091: 'typedef ': ignored on left of '' when no variable is declared
You gotta be fucking kidding me.
typedef enum {
    hdBase = 0, // root directory for dbghelp
    hdSym,      // where symbols are stored
    hdSrc,      // where source is stored
    hdMax       // end marker
};
 
@ThePhD ...and g++ warns about: Myclass(F f) : f(f) {}, apparently on the assumption that I can't possibly know which f is which.
 
2:05 PM
blinks blinks blinks blinks
 
Xeo
@R.MartinhoFernandes Hahahaha
suckers
 
@R.MartinhoFernandes Surprising that they don't blanket ignore all warnings form their own headers.
but that warning I think is a good one- the typedef is totally redundant there and kinda implies that the programmer didn't write what he wanted to.
 
Xeo
@Puppy I think it's actually ill-formed
 
not sure.
but I think we can all agree that it's bad and should be warned if not errored on.
 
2:06 PM
@Puppy It is. But... why did they not see the warning and why can't I ignore those headers :<
 
user3010322
@JerryCoffin Well then, g++ is bad. c:
 
user3010322
@R.MartinhoFernandes Preproduction compiler, nobody smoke tested. :D
 
@R.MartinhoFernandes Not quite so sure about this one. Did you want it to accept the code silently, or reject it completely?
 
@R.MartinhoFernandes You can, you just have to do it explicitly.
 
user3010322
"Not suitable for production" etc etc.
 
2:07 PM
@JerryCoffin I wanted the code to not be there :< It's some Windows SDK header.
 
@R.MartinhoFernandes Ah, I see. Yes, the code is pretty bad.
 
@ThePhD True. At least on this one that is the expectation.
@Puppy Well, I can in this case. Wouldn't work if the offending code was in a template, though.
 
@Mysticial Why can't I click and zoom on a user profile pic on a youtube account?
 
yes, true.
 
user3010322
@Jefffrey pick => pic
 
2:08 PM
thanks
 
Ooooh, useful warnings. We have some throwing dtors.
:S
 
@ThePhD Another that bugs the crap out of me with gcc is warning every time variables in an initialization list are in a different order from their definition. It would make sense if it found that I was trying to use a value before I initialized it, but none at all that I have int a, b; /* ...*/ : b(1), a(2);
 
user3010322
@JerryCoffin YES!!!!
 
user3010322
This, a thousand times!!
 
user3010322
It's my BIGGEST PET PEEVE while transitioning my code to g++.
 
user3010322
2:11 PM
Makes me want to strangle the compiler, than hang myself.
 
Ell
Why don't you just initialize them in the correct order?
 
Xeo
@JerryCoffin there's in general no telling if you use members out of order
if you init it from a function call, all bets are off, really
 
user3010322
This warning is specifically about the post-constructor list.
 
@R.MartinhoFernandes Oh goody--maybe they've eliminated this in newer versions of gcc (at work we're currently stuck with an ancient version).
 
user3010322
2:12 PM
So it can totally tell.
 
Xeo
@ThePhD No?
 
Destroy :)
 
@ThePhD ) : a(f()), b() {}
 
@JerryCoffin Trying to tell if you use a value before you initialize it is solving the Halting Problem. But it could handle some simpler cases.
 
@Xeo Yes, there are cases where it can't tell with certainty that what you're doing is harmless, but there are a lot of cases where it gives a warning when it would be trivial to show no harm is possible.
 
2:15 PM
right
 
@Puppy In the very general case it might be that difficult, but here I'm just talking about member initialization lists, and having something like: int a, b; /* ... */ : b(1), a(b) {}
 
now I'm really off to the doc so he can tell me I have MRSA or something.
wish me luck
 
@Puppy Good luck.
 
user3010322
@Puppy I don't wish you luck.
 
user3010322
I give you luck! All of it in the world!
 
user3010322
2:16 PM
I mean, doesn't anyone think it's strange that you "wish" someone "luck"?
 
user3010322
It's like maybe hoping that something might happen. Ish.
 
Also, it's actually not even ok to suppress it for a(f()), b(g()) where neither f() nor g() depend on each other, and neither depends on a nor b.
(Though woe on you if you write such code)
 
@R.MartinhoFernandes ...but it certainly is okay to suppress it when there are no function calls involved at all, and everything is being initialized from literals.
 
Xeo
@JerryCoffin Who knows what horrible deeds the ctor of a does, if the initialising class is a singleton or something :D
So there's still a (hidden) function call in many cases
 
2:23 PM
> fatal error C1076: compiler limit: internal heap limit reached; use /Zm to specify a higher limit
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaand... hope is gone.
 
This is the devel branch, which compiles in VS2013; it's not even the torture device I wrote on the other branch that I actually wanted to test.
 
I don't know why you hope MSVC will work properly
 
Where's a list of features they added?
 
2:26 PM
@Xeo If there's a function call, it's not hidden from the compiler. The fact that there are a few corner cases where it might not be able to figure things out doesn't justify issuing warnings when it's utterly trivial to figure out, like initializing a couple of ints from integer literals.
 
Ah, found it.
I have the feeling inheriting ctors broke Eigen.
> error C3083: '{ctor}': the symbol to the left of a '::' must be a type
using Base::Base::operator=;
This is weird.
 
@BartekBanachewicz that's pretty... interesting I think. Downside: learn Haskell. Upside: no need for Scheme/Guile-script to do custom logic
 
Xeo
2:45 PM
> Oculus [...] Acquires RakNet And Open Sources Its Tech
lols
 
@R.MartinhoFernandes I don't see how it can be.
 
turns out that I don't have MRSA or internal bleeding or whatever, but they probably gave me some drug to prevent blood clots that means that the bruises (totally normal) take a bit longer to heal.
so mister doctor person was totally unconcerned about the somewhat alarming yellow/red/blue skin
 
Yeah, the CTP's implementation of inheriting ctors definitely botches everything.
More bugs to file.
 
2:53 PM
@R.MartinhoFernandes base is foo<T>, foo<T>::base is int, and int::f is definitely bad.
even if you don't assume that base::base must be a ctor.
 
@Puppy There's no instantiation.
 
user3010322
@R.MartinhoFernandes I can try that when I get to work on the latest VC++ devel build.
 
@R.MartinhoFernandes I don't believe there has to be, since it's broken for all T.
 
user3010322
If it passes, I'll let you know.
 
Put using base = foo<T>; in foo if you want.
@Puppy No, it's not.
template <> struct foo<int> { using base = foo<int>; void f() {} }
 
2:54 PM
@R.MartinhoFernandes Well, I guess you could specialize foo<T> later.
 
@sehe I thought you knew enough of Haskell already
 
man, I hate template specialization.
 
The CTP thinks using base::base::f; is an inheriting ctor and then barfs at ::f.
 
it's shit.
 
user3010322
Template specialization is amazing.
 
2:55 PM
It gets better, though.
 
user3010322
I wish it worked on functions.
 
@ThePhD Functions have something much superior- overloading.
 
the band aids don't hold to my finger
 
ah yeah
 
2:55 PM
they are constantly fucking falling off
 
and it gets better
 
Workaround: using base2 = base::base; using base2::f;? Thinks the base2 declaration is an inheriting ctor and barfs.
 
mister doctor person gave me a whole month of sickness stuff
 
@Puppy Overloading is meh
 
typedef base::base base2; using base2::f? Works.
 
2:56 PM
@BartekBanachewicz It's much superior to template specialization.
 
user3010322
@R.MartinhoFernandes Hehehehehe.
 
(In a real compiler it needs typename, though)
 
@Puppy it's very annoying to work with
 
user3010322
typedef 2 stronk
 
is Wide going to have typeclasses?
 
2:57 PM
@Puppy You're happy that you'll be sick for a month? :P
 
@BartekBanachewicz C++'s version of it is of course inferior to what it should be, but C++'s OR is better than C++'s template specs.
 
@BartekBanachewicz what they?
 
@R.MartinhoFernandes Honestly, I feel mostly fine right now. It's just the alarming skin colours that concern me.
 
@thecoshman post-class definition compile-time interfaces, in short
 
@Puppy specialisation has it's place though (afaik)
@BartekBanachewicz o_0
 
2:58 PM
@BartekBanachewicz I'm pretty sure that it will. It's been a while since I thought about that stuff. But ISTR that Wide will have a comparable feature.
 

« first day (1360 days earlier)      last day (3587 days later) »