« first day (421 days earlier)      last day (4529 days later) » 

Xeo
11:01 PM
0
Q: Can casts be completely avoided with a good design?

Luchian GrigoreI'm wondering whether situation exists where casting is completely necessary. I'm talking here about casts between classes, not basic types. Is casting (be it C++ style like static_cast or dynamic_cast, or plain C-style cast) a code smell? I can see how sometimes it's helpful, but I think it ca...

 
(clipboard) is from a script.
> Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11.
IOW, we didn't fix a damn thing. Buy a new product and it won't have that bug.
 
yeah. I agree
wtf is wrong with Microsoft
 
Xeo
VS11 express will be, as always, freely available. Their policy is like "If we have a new version out, get it, because it just is better"
"Oh, and the old version is unsupported from that day on."
 
heck, even the new version is basically unsupported from the day it launches
 
@Xeo Yeah, what about those that have the paid versions?
 
Xeo
11:06 PM
Basically, they're fucked.
 
by the way
I have a question
 
Sounds totally ass backwards to me.
 
@RMartinhoFernandes it is
 
Here's my answer: Yes.
 
if I made you pay 30 American cents, would you still download WideC, if you would have done if it were free?
 
11:07 PM
@DeadMG Cool, I have an answer!
 
but it made sense 20 years ago, and this policy has worked for them since then, so hey, why change it? ;)
 
Stupid fucking Internet swapped my messages!
@DeadMG I'd pirate it!
 
lol
for thirty cents?
 
Xeo
Though, if you have the paid version, afaik you get full access to all MSVC versions (on the level you paid for, professional, ultimate, etc) for a certain amount of time or something. I could be wrong about that.
 
@DeadMG People pirate the humble bundles.
 
11:08 PM
@DeadMG Probably not.
 
hmmm
 
Which is like, 1 cent if you want to.
 
@Xeo I don't think so. But usually people get a MSDN membership, which gives you access to a truckload of stuff
 
@RMartinhoFernandes Buying them for that low is worse than downloading from other sources.
 
but if you just buy, say, a VS2010 license, then that's what you get
if you want 2k8, you're still fucked
 
11:09 PM
@jalf Pity that truckload of stuff does not include fixes.
Also, DAMN CHAT SCROLL THE FUCK DOWN.
 
I'm pretty sure I have a good product, at least in theory
 
@CatPlusPlus Why?
 
but I have no business plan
 
@RMartinhoFernandes yup
 
@RMartinhoFernandes Because cloud. It costs them money when you download from them.
 
11:10 PM
thirty cents, in fact
 
Ah, fair point.
 
it costs them thirty cents to do the financial transaction
 
Still, my point was that people will pirate anything, regardless of price.
 
if you pay them 1 cent, you're actually costing them money
true
 
Wtf
Something's being weird.
 
11:11 PM
maybe I'd just get further with a "plix donate" button?
 
@RMartinhoFernandes I'm pretty sure that fewer people pirate the humble bundles than, say, VS, though
 
(!c==a) Where c is 2 and a is 1 it's returning false?
 
well, at least in terms of the pirates to paying customers ratio. No clue on absolute numbers
 
Yeah, obviously.
 
@KianMayne yes?
 
11:12 PM
Ohhh it should be != shouldn't it
 
@KianMayne Makes perfect sense.
 
What does !int do?
 
@KianMayne Did you mean !(c == a)?
 
@RMartinhoFernandes depends on what you meant to happen
 
@FredOverflow Yeah
 
11:13 PM
but it gets evaluated as ((!c)==a)
 
@KianMayne Return true or false depending if int was zero or not zero.
 
@RMartinhoFernandes That would explain things.
I'm being stupid
 
Same thing in C#.
 
In C#, it'd just be a compile error
 
Except you can't ! integers.
 
11:14 PM
it still wouldn't do what you wanted
 
Just use (c != a) and get on.
 
No! Use !!(c != a).
Parenthesis are evil.
 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(c != a)
 
0
Q: assigning a heap allocated reference to a stack allocated variable

HollandIs this possible? According to what I'm trying to accomplish, it appears not so. The function static std::string str_repeat(std::string * str, int num_times) { std::string * str_rep = new std::string; for (int n = 1; n <= num_times; n++) { str_rep = str_rep + str; } ...

This is... new.
 
Why, oh why.
 
11:16 PM
oh dear lord
 
Xeo
Whyyyyyyy
Why would they do that?!
 
I can't look at it anymore
 
Xeo
Someone save those poor pointers!
 
Heap allocated references? There is no such thing.
 
At least it uses std::string.
That's a good thing. Right?
 
11:18 PM
Honestly, I think char* makes more sense than std::string* (note the pointer!)
 
@DeadMG btw, when I said I'd pirate it, I wouldn't. I really wouldn't mind paying 30 cents.
 
lol
 
Why would you ever want to dynamically allocate a std::string?
 
@FredOverflow Definitely.
 
I still don't think I'd pay for a compiler.
 
11:18 PM
@CatPlusPlus Not if it's a starred std::string.
 
hmm
it's not that I want to make people pay for the compiler
more that I don't want to have to get a separate job :P
 
lol
Be a garbage man.
I would if I could.
 
which is, I'm guessing, highly unrealistic
 
Wait, that's another meme.
 
11:20 PM
Doesn't matter, garbage man.
 
I used to be a garbage man. Then I took an arrow in the knee.
[insert fake laughter here]
 
I ran into the "std::conditional will instantiate (is that the right word?) both branches" problem.
i.e. not lazy-like
is it normal to use a trivial metafunction in the condition and then a ::type::type at the end of it all?
 
Boost has a lazy one.
 
a lazy arrow in the knee?
 
11:22 PM
Typeception.
 
It worked! :D
The number was
 
My sister has a lazy eye, but she's not here right now either
 
381654720 :D
 
I require rest
I shall see you all in Teh Mawnin
 
I'm lazy.
 
11:24 PM
Something like lazy_conditional<cond, then, else> where then and else may or may not have ::type members. The lazy_conditional<...>::type typedef accesses the correct ::type directly.
 
@DeadMG nope. (1) 30c is inf times as much as 0c. :) Even going from free to a penny is a jump, cause then you involve all the hassle of paying for stuff. (2) charging 30c is basically saying "this is worth 30c", which is basically saying it's crap
 
lol
 
if you're gonna charge, charge a price that says "this is worth getting"
 
Yeah, like 1000€.
 
If it'll be really good, it might sustain itself from donations. But charging is not good for bootstrapping interest.
 
11:25 PM
i dunno about all that :)
but anything below $10 strikes me as bargain-bin crap
 
Even if all those 10 people who know what the hell that is will pay you, it's still 3€ or something. :P
 
> Error posted. @Oli Charlesworth what do you mean? I thought that objects allocated using pointers were allocated on the heap, and therefore work faster? – Holland 7 mins ago
 
oh, and i wouldn't charge in euros either. i hear they're about to collapse...lol
 
@RMartinhoFernandes Ah, brilliant.
 
> What on earth gave you the idea that heap objects work faster?
@RMartinhoFernandes somebody had to say something :)
 
11:36 PM
@FredOverflow I was speechless.
 
I would imagine.
 
sbi
@FredOverflow I said it.
 
I think I need to take a break from newbies.
5
My brain is melting like cheese in microwave.
 
@sbi Some people may not get that joke.
 
lol @ "take a break from newbies".
 
sbi
11:39 PM
@FredOverflow Everybody reading here will get it. Isn't that all that matters? :^>
 
Er, I didn't get it until you mentioned that people here would get it. :(
 
Ooh, the ++ guy replied.
 
@CatPlusPlus Link?
 
Who's the ++ guy? Isn't that you?
 
11:41 PM
The "I banned i++ from my company" guy.
 
Nested loops and if statements! (I would never do this in any real world program)
 
Ah, that one.
 
But what would have been better?
 
What would have been better? Not having system("PAUSE"); in it.
 
cpx
Hm, is there type called vooid in C++?
 
11:44 PM
Aww, @sbi took his nonsensical comment back and replaced it with something serious :(
 
36
Q: "int main (vooid)"? How does that work?

paxdiabloI recently had to type in a small C test program and, in the process, I made a spelling mistake in the main function by accidentally using vooid instead of void. And yet it still worked. Reducing it down to its smallest complete version, I ended up with: int main (vooid) { return 42; } T...

is the one you're talking about?
 
@RMartinhoFernandes Apart from that :L
 
@cpx Not in C++.
 
cpx
@Mysticial hmm yes.
It's only relevant result that comes up in search engine
 
11:49 PM
Anyone know SVN?
If I want to check out a new project that contains one directory with static bulk data that I already have acquired previously, can I skip that download?
 
Hi
 

« first day (421 days earlier)      last day (4529 days later) »