« first day (836 days earlier)      last day (4111 days later) » 

user784668
4:00 PM
@R.MartinhoFernandes Tell him that his code is bad.
 
Naughty STL
 
@R.MartinhoFernandes, using inheritance for polymorphism is an incredibly powerful feature, I'm surprised you don't find any use for it! Defaulting to using inheritance as composition runs contrary to another generally accepted "rule of thumb": see this linkuser1158692 14 mins ago
 
@Fanael No, not really. Microsoft uses the Dinkumware standard library. He seems to be Microsoft's liaison to Dinkumware, but that's about it. Most real changes are handled by Dinkumware.
 
I don't like people that think composition by inheriting is wrong :(
 
btw, Boost.Function also sucks.
 
4:01 PM
@JerryCoffin So what does he actually do?
Send PRs to Dinkumware?
 
Xeo
@JerryCoffin Really? He always talks about coding the stdlib.
 
Maybe he could use the WhiteSpace Strippers tool.
 
user784668
@JerryCoffin Last time (i.e. a long time ago, I haven't used VC++ in years) I checked it wasn't pure Dinkumware.
 
user784668
0
Q: implicit conversion during pass by value works, but pass by reference does not

SteveCompiling with clang++ 4.1: class A { public: A(const char *s=0) : _s(s) {} const char *_s; }; void f(A a) { cout << a._s << endl; } int main() { f("test"); return 0; } prints, test whereas if I define f as follows, void fA(A &a) { cout << a....

 
@R.MartinhoFernandes Makes videos. Honestly, I'm not sure exactly what he does most of the time, but I do know when I reported a bug in the standard library, and demonstrated it to his satisfaction, he said he was going to send the report to Dinkumware.
 
user784668
4:03 PM
> Compiling with clang++ 4.1:
 
@JerryCoffin Sigh.
 
user784668
Isn't that a bit too new?
 
Xeo
@Fanael AppleClang
 
@Fanael Apple uses a different versioning scheme. Trying to compete with Microsoft in sowing version number confusing.
 
@Fanael is it supposed to work? Ah, immutable string, right?
 
4:03 PM
@JerryCoffin they've got quite a few changes to the library themselves
 
user784668
@Xeo The Apple hipsters use different versioning because the upstream one is too mainstream?
 
but of course they try to keep it in sync with Dinkumware
 
@R.MartinhoFernandes What the fuck are you guys talking about?
 
WTF is this http://whitespacestrippers.com/ Thankfully they were already nuked on GitHub http://webcache.googleusercontent.com/search?q=cache:ZxfKrMav6KIJ:https://github.com/WhiteSpace-Strippers+&cd=3&hl=en&ct=clnk
 
@jalf Could be -- I don't have any inside knowledge to go on, nor have I ever bought a library directly from Dinkumware to compare the two and see how much difference there might be.
 
Xeo
4:08 PM
So,, @R.MartinhoFernandes, what do we do wrt the function move thingy?
 
@Fanael without Apple clang might be pretty much underground today
 
Xeo
@BartekBanachewicz Rather, it wouldn't exist, since Apple started the whole LLVM/Clang deal.
 
@R.MartinhoFernandes Didn't you know that white space is the root of all evil?
 
@Xeo >The LLVM project started in 2000 at the University of Illinois at Urbana–Champaign, under the direction of Vikram Adve and Chris Lattner. LLVM was originally developed as a research infrastructure to investigate dynamic compilation techniques for static and dynamic programming languages. (...) . In 2005, Apple Inc. hired Lattner and formed a team to work on the LLVM system for various uses within Apple's development systems
 
@Xeo Check bug trackers; if not found, ask on SO; if bug, post on bug trackers.
 
user784668
4:10 PM
@BartekBanachewicz So they use different versioning than they do themselves?
 
Xeo
@R.MartinhoFernandes But standard says F needs to be copy constructible. :<
Just that the copy is initialized with std::move(f)
 
@Fanael Maybe. I dunno, since I don't really use apple toolchain
 
gotta love alt+shift+arrows in MSVS :D
 
user784668
@LuchianGrigore What's that?
 
@Xeo Oh. FFS.
 
4:12 PM
try it out, you can select blocks of text
 
That's... annoying as fuck.
 
user784668
@LuchianGrigore What if I don't have MSVS?
 
user784668
@LuchianGrigore So it's <C-v>?
 
Xeo
19 mins ago, by Xeo
> Requires: F shall be CopyConstructible.
As I said.
 
4:13 PM
@Fanael Yeah.
 
user784668
@LuchianGrigore vim
 
@LuchianGrigore Can you paste stuff over that selection?
 
@R.MartinhoFernandes yep.
 
4:16 PM
I'm looking for a far fetched factoid. What is the deepest anyone have drilled down the results of a google search, measured in number of pages. Anyone have seen stats?
 
@JohanLarsson No stats. I think I've been to page 30-40 once
Actually on several queries
 
were you crying in the end?
 
@JohanLarsson You can't go past 100 IIRC.
 
@R.MartinhoFernandes Hence my unique_function btw.
 
@LucDanton Yeah, I see now.
 
4:17 PM
@R.MartinhoFernandes ok will try
 
@JohanLarsson A bit:
Oct 7 '12 at 22:57, by sehe
@StackedCrooked It proves veeeery hard to google
Oct 7 '12 at 23:21, by sehe
VICTORY! I have found the deja-vu source :) /cc @Xeo @StackedCrooked
See, that took only ~30 minutes (@Johan as you can see, my google fu is quite sufficient really... I just like having google as my extended memory)
 
user784668
Is there a vim way that doesn't involve vim script to insert def R%i : Ri32<%i, "r%i">, DwarfRegNum<[%i]>; 256 times with the current iteration number replacing the %is?
 
Mmmh, I could relax my MoveConstructible requirement out of the model and leave it to the constructors as long as I provide an emplace constructor.
 
@Fanael Macro.
 
@R.MartinhoFernandes yup
 
4:21 PM
q<register>yyp<move to first thingy><C-a><move to second thingy><C-a>...<move to last thingy><C-a>q254@<register>
 
@R.MartinhoFernandes It capped at 78 for me, I tried with 'Britney Spears' and 'test'
@sehe I blame google partly for me not remembering anything.
 
user784668
Oh.
 
user784668
It seems that TableGen does, in fact, have loops.
 
@Fanael qqYp<C-a>f<<C-a>w<C-a>w<C-a>q, then 255@q
 
4:24 PM
@sehe That makes one too much!
 
@R.MartinhoFernandes That's extra. Press "_dd to delete
 
After recording the macro you are left with 2.
 
Actually, I don't care
 
Hello all, I have a small question. Are there any know compatibility issue with boost 1.47 and windows 8? Currently I'm having issues with my data getting corrupted when I use boost::scoped_ptr::reset().
 
That sounds like your code has UB.
 
4:25 PM
Yeah. Windows 8 doesn't support boost At all. Perhaps, VS2012 does
 
I'm using VS2010. The code compiles without an issue on Win7.
 
TIL asking your vim questions in Lounge<C++> might give you an answer quicker than on #vim or SO proper. A lot quicker
@ahenderson Use the binary from Win7?
 
Woa, FatalExecutionEngineError?
Am I lucky.
 
@ahenderson Also, UB (undefined behaviour) is precisely that: it might work with one version of the compiler, it might break another day
 
user784668
4:28 PM
@R.MartinhoFernandes Oh right, I completely forgot <C-a> exists. /cc @sehe
 
@EtiennedeMartel Yeah, there was an error in the FatalExecutionEngine
 
@sehe I think it's more of a fatal error in the execution engine.
(I refuse to acknowledge your joke)
 
@Fanael It's on your keyboard, the primary key modifier (usually leftmost bottom row) and to the left of the S key (assuming qwerty-based layouts)
 
user784668
How can I tell LLVM to use a specific register allocation order?
 
@EtiennedeMartel Keep doing that.
@Fanael When is that?
 
4:30 PM
@ahenderson Code might compile but still produce incorrect behavior. That's what's funny about C++.
 
user784668
@sehe When writing a backend.
 
Maybe you were simply lucky with Win7.
 
@sehe Thanks. I'll look into any UB causes.
 
I don't believe I just got 4 5 upvotes for "pass the list by reference"
FML.
 
Pssst, guiiiis.
 
4:32 PM
@EtiennedeMartel I hate when my luck runs out :(. Wish they had a command line option to reset my luck counter.
 
C# took the name BinaryReader from me, so I need to find another name for my class which .. ... reads binary data.
What do?
 
user784668
I wonder if I'll get an answer if I ask on the SO proper.
 
@ThePhD 01000010011010010110111001100001011100100111100101010010011001010110000101100100‌​0110010101110010 obviously.
 
@ThePhD why can't you use BinaryReader?
 
@BartekBanachewicz System.IO.BinaryReader exists. I'd like to avoid the name collision.
@Rapptz Readerof1337 ? :D
 
4:34 PM
@ThePhD I mean, are you really writing something very similar?
 
Update: it failed in the same place on two different machines but when I made a clean build just now it started working fine.
 
@BartekBanachewicz Would you be surprised?
 
@ahenderson UB?
 
@BartekBanachewicz Yes, but it has some extra jazz builtin that I use all the time.
 
@ThePhD ByteReader?
 
4:35 PM
yeah UB for sure
 
@melak47 I actually really like this. It would go well with my BitReader class.
 
@BartekBanachewicz 6 now:P
 
user784668
Oh.
 
user784668
> The RegisterClass class (specified in Target.td) is used to define an object that represents a group of related registers and also defines the default allocation order of the registers.
 
ALRIGHT, Bit, Byte, and TextReader, go go!
 
4:36 PM
@Non-StopTimeTravel now you're just f*cking with me. I mean, the answers I really put a lot of checking, correcting, research in get... 3.
 
It's how SO works.
 
user784668
@BartekBanachewicz I can dawnvote you if you want.
 
user784668
@BartekBanachewicz Or do you want a duskvote instead?
 
@Fanael Nah, I have to farm up to 10k someday. There's a lot of brilliant fun deleted messages
 
user784668
@BartekBanachewicz Seven now.
 
4:39 PM
@Fanael it now has more than my Sleep() answer. lol.
 
user784668
What would happen if an app tried to write to one of the "kernel-reserved" registers on Sparc?
 
meh... repwhores ITT
 
@BartekBanachewicz 45?
 
@sehe I think he meant 4 5
Oh that is what it is.
 
yeah, the striketrough composes badly with 4
 
4:44 PM
The strike looks pretty shitty.
 
what strike? aaaaah highlighting it as a selection made it more apparent
 
It's on the 4.
 
Did I mention I should leave my keyboard, go home and switch back to giant axe/hammer?
 
 
user784668
@sehe My eyes.
 
4:46 PM
@user876651: & is not an identifier. An identifier is an arbitrarily long sequence of letters and digits ([C++11: 2.11/1]). — Non-Stop Time Travel 1 min ago
heh pwned
 
@sehe What is that ugly text?
 
@Rapptz I thought it was 4-5 with a major kerning bug for the first few seconds :)
@EtiennedeMartel Everything Nothing
oi
 
user784668
Eclipse, stop right there.
 
@Non-StopTimeTravel did you buy ISO C++11 standard?
 
it's ---text---
 
user784668
4:47 PM
PyDev depends on JDT?
 
@sehe oh what a font
 
@BartekBanachewicz I have a copy of the ISO C++11 standard.
 
user784668
Yes. PyDev depends on JDT.
 
user784668
What in Oblivion does PyDev need JDT for?
 
@Non-StopTimeTravel I love how you did and didn't answer my question at the same time.
 
4:48 PM
@Abyx I'm beginning to genuinely think I don't care for fonts
 
@Rapptz Thanks! It's not mentioned in SO's formatting FAQs.
 
@Fanael Rest assured, on my crappy Dell flat panel at work, with XP antialiasing, it is worse still
 
@BartekBanachewicz Yeah did you like that?
 
@Non-StopTimeTravel that's what she said.
 
@BartekBanachewicz I've watched enough West Wing to be able to put out a half-decent press briefing answer on short notice.
@BartekBanachewicz Yes, yes it is!
 
4:52 PM
Refactoring support? JDT is the main IDE bit, really. JDT is a bit of a misnomer that way.
But it's okay. Eclipse being Java, there aren't actually many extra dependencies being brought int
 
user784668
@sehe CDT has refactoring without JDT dependency.
 
@Fanael So blame PyDev for taking the low road of code reuse
^ /cc @Zoidberg
 
@JerryCoffin well, at the very least they've needed to modify it gradually to adapt to their compilers capabilities and quirks. They also added a ton of debugging macros, which overlapped heavily with the debugging macros built in by Dinkumware. IIRC that was one of their major changes in VC10, trying to unify those, and submitting as many as possible of their changes back to Dinkumware
 
@jalf From some of PJ Plauger's posts, I get the impression that they do quite a bit of the work of tailoring it to a particular compiler, as well as using macros for a lot, so it can work "out of the box" with a pretty wide range of compilers (e.g., even use of the std namespace is still controlled by a macro).
 
@JerryCoffin Yeah, I'd assume so. But going by STL's comments, they've had a number of changes themselves too. It sounds like they've recently tried to get back in sync with Dinkumware, though
 
5:03 PM
Hi. I've been writing some Linux software and have gotten an interesting warning when using va_arg
warning: 'wchar_t' is promoted to 'int' when passed through '...' [enabled by default]
 
@IDWMaster What about it? It describes pretty accurately what happens, doens't it?
 
Very good. That's widening implicit conversions. They can really fuck you up the most (especially with sign extension)
 
@jalf Yes, but is there a way to prevent it from happening?
 
... don't use varargs? :D
 
user784668
@IDWMaster static_cast to make it explicit.
 
5:05 PM
or pass a wchar* instead
 
user784668
@jalf Irrelevant. wchar_t to int conversion is not specific to varargs.
 
@Fanael ... no, it happens in any situation where an int is accepted and you pass a wchar_t. But outside of varargs, you can generally spot it by looking at the function's signature
and say "oh, that function takes an int"
 
@jalf If I had to make a guess, I'd say they do their best to let Dinkumware handle things, but do things on their own only when/if they think they need to. I'd also guess exact percentages vary pretty widely over time, so (for example) immediately before a release, they're more likely to jump in and do what they need to meet deadlines.
 
So anything with an "unknown" type (...) converts stuff to an int?
 
5:07 PM
@JerryCoffin Yeah, that'd make sense. :)
 
user784668
@jalf Yes, and if you try this, you still get a warning about implicit conversion. Or at least you should.
 
@IDWMaster not all "stuff". floats get converted to doubles, iirc. To be honest, I can't remember the details, I tend to avoid varargs at all costs
 
@LucDanton :]
^ a forced smile
 
Method signature:
void ReadAll(wchar_t*& code, int count, ...)
 
@Fanael compilers generally don't warn about widening conversions, AFAIK. Except in special cases like with varargs where you might otherwise reasonably assume functions to just be passed as-is
 
user784668
5:09 PM
@jalf They do when there's a sign involved.
 
user784668
@jalf rankof(T) < rankof(int) to int, float to double, forgot anything?
 
@Fanael Pointers.
@IDWMaster Variable arguments are very, very bad.
 
user784668
@DeadMG They're passed verbatim, aren't they?
 
no idea, you're the one who was specifying the rules.
 
When you pass a string literal as a function argument, does it live on the stack or in the memory of the program (the actual .data section)? I disassembled this code stacked-crooked.com/view?id=42ecec6cda23744ef0181715e2704a74 and found that the string is in the .data section while in some other program (can't remember what it was about) the string lived on the stack. Could someone explain how does the compiler makes this decision or correct me if I'm wrong?
 
5:15 PM
string literals are lvalues- they live forever.
 
@Tuntuni If you do char *x = "whatever";, then it has static storage duration. If you do char x[] = "whatever";, then you have a local array, that's somehow initialized -- typically from a literal with static storage duration.
 
@JerryCoffin If you do char* x = "whatever" you get a compiler error, as that special case was removed in C++11.
 
oh it was?
 
@DeadMG Yeah, whatever.
 
Is there a case where a string lives on the stack? I've seen this when I disassembled a program I made before but I have no idea what it was about. :/
 
5:17 PM
not unless you put it there.
 
@DeadMG Oh, I see. Thanks! :)
 
man
swapping and ranges sucks.
 
@Tuntuni Like I already said, if you use char []x ..., (inside a function) you'll get an array of char on the stack.
 
5:19 PM
@JerryCoffin Oh sorry, missed that. Thank you too. :)
@Griwes Lol
 
@Griwes Gives new meaning to the term "scared straight".
 
Ell
5:34 PM
How do you describe a context sensitive grammar?
for example, you use EBNF for a context free, don't you?
 
Xeo
recursive descent?
 
@Ell "grammer"?
 
Ell
:3
@Xeo Isn't that a type of parser? also I thought that could only parse... right recursive(?) grammars and couldn't do context sensitive
 
@Ell in uni, we always use attribute grammars for everything
 
@Ell You can use EBNF for either context free or context sensitive. In a CFG, you only get one non-terminal on the left side of a production (e.g.,X :: = A B | C). In a context-sensitive grammar, you have productions with two or more symbols on the left side (e.g., aBc ::= X Y | Z;, which means B is only being defined here within the context of a and b -- preceded by a and followed by c).
 
5:39 PM
0
Q: c++---How to exit "mysql.exe" process by writing to its input stream (Process Created using CreateProcess() )

SreekarIm trying to to exit mysql.exe gracefully which is created using CreateProcess() from Windows APIs. My problem is mysql.exe is not killed. If I kill the process after sleeping my main thread for sometime then the "dump" of database I'm writing to its INPUT stream (using pipes) is not applied prop...

What on earth is c++--- lol
 
@FredOverflow "C++" followed by a pseudo-em-dash.
 
Ell
@JerryCoffin ohh right I think I understand that
@melak47 I will have to look that up :3
 
@JerryCoffin Oh. He could at least have put a space after the ++ :)
 
@Ell or maybe it's a variation of that
 
@DeadMG What do you mean?
@JerryCoffin The syntax is char x[], not char []x.
 
Xeo
5:43 PM
@Ell Oh, right, description.
 
@FredOverflow Or left it out completely, since the c++ part really belongs in the tag. And oh look, some nefarious person has edited it...
 
this is how we used to define grammars, when we did that kind of stuff :p
 
38
A: How much faster is C++ than C#?

Konrad RudolphIt's five oranges faster. Or rather: there can be no (correct) blanket answer. C++ is a statically compiled language (but then, there's profile guided optimization, too), C# runs aided by a JIT compiler. There are so many differences that questions like “how much faster” cannot be answered, not e...

16
A: How much faster is C++ than C#?

Konrad RudolphOne particular scenario where C++ still has the upper hand (and will, for years to come) occurs when polymorphic decisions can be predetermined at compile time. Generally, encapsulation and deferred decision-making is a good thing because it makes the code more dynamic, easier to adapt to changi...

@KonradRudolph Two answers to the same question posted within 20 minutes? What a rep whore ;)
 
Ell
I'm sorry that doesn't mean an awful lot than me :L
@melak47 could you explain it? if you have time and effort obviously :0
 
@Ell the first set contains all the non-terminal symbols, the second set the terminal symbols, P is the set of productions that construct the grammar, and S is the start symbol
so you start with S, then you can replace S with ABC, ABCZ, or nothing (empty word)
 
Ell
5:52 PM
@melak47 is the e the emtpy set?
 
more like empty letter :S
 
6:04 PM
@FredOverflow Well, the range might not be an lvalue.
 
user142019
@sehe :D
 
user142019
Seems I have Java test tomorrow.
 
user142019
To go or not to go?
 
> InvalidOperationException was unhandled by user code: This operation can be executed in this state
Well, what's wrong then?
 
user142019
Maybe it's the typo that's wrong.
 
user142019
6:06 PM
If there is one. :P
 
0
Q: Is C++ context-free or context-sensitive?

FredOverflowI often hear claims that C++ is a context-sensitive language. Take the following example: a b(c); Is this a variable definition or a function declaration? That depends on the meaning of the symbol c. If c is a variable, then a b(c); defines a variable named b of type a. It is directly initiali...

I have been meaning to ask this for a very long time :)
 
user142019
@FredOverflow fr1st upvote!!1
 
@Zoidberg Why wouldn't you go? Scared of Java? ;)
 
user142019
Because it's so much effort to go all the way to Rotterdam for a silly uninteresting test about a shitty language.
 
@Zoidberg AvalonDock is a stinking pile of shit, so it's probably a typo.
 
user142019
6:09 PM
They ask things like what is polymorphism.
 
34
A: Is any part of C++ syntax context sensitive?

280Z28Yes. The following expression has a different order of operations depending on type resolved context: Edit: When the actual order of operation varies, it makes it incredibly difficult to use a "regular" compiler that parses to an undecorated AST before decorating it (propagating type information...

 
user142019
The shit I already know for years.
 
Wait, @FredOverflow did a duplicate?
 
Xeo
Yay, time to head home. See ya.
 
user142019
@EtiennedeMartel BAN HIM
 
6:10 PM
UNNACEPTABLE
 
Either he leaves or we all leave.
 
user142019
@Pubby Close that question as a dupe of Fred's. :P
 
Voting to re-open. Please have your Academic text-books open. — pst 1 min ago
Voting to re-open? Was it already closed once? lol
 
no
 
user142019
C++ isn't context-sensible.
 
6:20 PM
@FredOverflow It was closed. I even voted for it, and @Pubby cast the final vote.
 
@EtiennedeMartel You're breaking my heart :(
 
They call me the finisher :)
 
user142019
Make a heart of bedrock next time.
 
@FredOverflow It's open again, as far as I can tell.
 
How do you pronounce "schadenfreude"?
 
user142019
6:22 PM
sjahhduhnfrojjduhh
 
@FredOverflow People come up with all sorts of inventive ways to lexically separate tags from text in their post titles, making a mockery of the fact that SO already has a way to do it semantically and that, as such, no further tagging is required.
 
@EtiennedeMartel shaw dan froi dee? :) Maybe YouTube has a video with somebody saying it?
 
user142019
Google Translate does TTS.
 
@EtiennedeMartel Shah den froy duh
 
^ this is so wrong :) It's not anywhere close to how you pronounce it correctly.
 
user142019
6:24 PM
I'll finish this with the only correct answer: /ˈʃɑː.dənˌfɹɔɪ.də/.
 
user142019
Also come on Minecraft you bitches.
 
@FredOverflow You don't know that guy?
All the videos are like that.
 
This is better, but still not 100% there.
Wow, "Meme" is actually pronounced "Meme, Meme, Meme"? I didn't know that!
 
"Meme" is pronounced like "gene", but with a M instead of a G.
 
And "Ngyuen" is pronounced "win"? What a cool name!
@EtiennedeMartel Mene?
 
6:27 PM
@FredOverflow Isn't that the most common name in Vietnam?
@FredOverflow Yes.
 
@FredOverflow I've heard it a few times. I continue to vehemently opposed these lies.
@FredOverflow That's because I choose to pretend that it comes from French rather than Greek, which is where it actually comes from.
 
@EtiennedeMartel Probably, I have already seen it a few times. Sounds more like a technology or a software to me.
 
user142019
I know a Ngyuen.
 
Everyone knows one.
 
user142019
But she pronounces it as "knee-uh".
 
6:30 PM
HoY
 
user142019
(Without the K, obviously.)
 
> WRONG WRONG AND WRONG AGAIN! WHY DO PEOPLE ALWAYS THINK THEY KNOW IT BUT END UP SAYING WIN?! WHAT THE HELL! ALL I HEARD WAS WIN WIN WIN BUT ITS TOTALLY WRONG!
lol
> Now, that you've pronounced "Win" correctly, can you please pronounce "Fail"?
lol
 
user142019
Sigh.
 
user142019
Stupid zombitches.
 
@Zoidberg Vat.
 
6:35 PM
@EtiennedeMartel Amazing, it actually becomes funny the third time you watch it!
 
AvalonDock, why are you doing this to me?
WHYYYY?
 
@EtiennedeMartel do what?
 
@FredOverflow Crap in my mouth and pee and my eyes.
 
When did he do that?
 
All the while singing "My Heart Will Go On".
Because it's a shit lib.
 
6:40 PM
"My fart will go on" would have been more fitting.
 
cute
otter facepalm
 
Is that Herb's otter?
 
Herb's got an otter?
 
Fuckin hell, now I got Celine Dion songs stuck in my head.
Most notably "A New Day Has Come".
 
user142019
Hmm. We can make a quarry. :3
 
6:45 PM
@Zoidberg For.......?
 
user142019
For mining a shitload of things at once. :P
 
user142019
But it requires eleven diamonds.
 
user142019
You can place it anywhere you want, connect pipes to it and it will mine an entire chunk for you.
 
6:52 PM
Oh, so it digs a 9x9 hole until bedrock.
 
hi, due to some rapid comment deletion by me and the person that commented on my q i didnt get to see what he replied when i asked what is the decltype(1?a:b) used for, can somebody help me ?
 
user142019
Quarries are ridiculously expensive. :L
 
@NoSenseEtAl decltype evaluates to the type of an expression.
 
user142019
@EtiennedeMartel Wait I think you can set the size yourself.
 
@Zoidberg Seems to take a lot of power too.
 
6:53 PM
@Zoidberg Use a mining turtle. It's only 3 diamonds.
 
@EtiennedeMartel yeah, but why use ternary operator ?
 
Hm.
 
@NoSenseEtAl Errr.
 
Need to dodge the names TextReader, StringReader.
Maybe...
.... OgonekReader? :D
 
@ThePhD You could call it text_reader.
 
6:54 PM
OH GOD NOT THE UNDERSCORES ;~;
 
Wait, what are you writing?
snake_case is the preffered choice in C++ because that's what's used by the standard library and Boost, so it looks less weird.
 
@EtiennedeMartel A TextReader, of course. It'll also have a bunch of other functions appropriate for reading single characters and for extracting numeric and other related data types from their corresponding string representations.
Technically, it's already written.
... Really, it is. I just need to name it appropriately.
 
@ThePhD Oh, like Boost.Iostreams?
 
@Zoidberg 1024x1024? :3
mine ALL the stuff
 
@EtiennedeMartel I guess? I've never used Boost.Iostreams, but it sounds sexy if it's doing what I'm doing. :D
 
6:59 PM
Aren't you writing it in C#
of all.. languages
 
@Rapptz Would be weird.
 
@Rapptz Both.
 
There's already a TextReader class in .NET.
 
He said he didn't want naming collision with the .NET classes earlier.
 

« first day (836 days earlier)      last day (4111 days later) »