« first day (707 days earlier)      last day (4250 days later) » 

8:00 PM
The starboard is rather meager atm. Must have been a boring day today.
 
@Cheersandhth.-Alf I would like to know why though.. I mean it works for the OP.
 
@LewsTherin what?
 
Why the syntax isn't valid.. it doesn't make sense to cast an initializer.. an initializer isn't a type, I assume that's your reasoning?
" btw. who are the freaking idiots or trolls who keep upvoting this nonsense." Lol
Harsh
 
any idea why someone uses such code as: if(x <= 1) x = 1; shouldnt it make more sense if it was: if(x < 1) x = 1; the x is double datatype. is there some magic stuff im not aware of? isnt it enough if i just use if(x < 1) x = 1; ?
 
Is it UB to cast an initializer list to an array?
 
8:04 PM
@LewsTherin i dont know why, but it is working here ideone.com/F9amd
 
@EtiennedeMartel Wtf, yes. It's a class type.
 
@Rookie Could be because a double isn't precise.. so it isn't an exact comparison
@Furqan See, I'd like to why it VS complains..
@LucDanton What type?
 
Ell
Why is it ub to read/write to different members of a union?
 
@EtiennedeMartel That's a compound literal and an extension.
 
8:07 PM
@EtiennedeMartel The initializer list is a list of heterogeneous types while array is homogenous. So before considering whether or not its UB its already conceptually wrong
 
It's actually fine to use cast notation with a list initializer though. E.g. alias<int[]> { foo, bar, baz } is fine.
 
@LewsTherin yeah but... whats the point doing: if(x == 1) x = 1; , how would the value change there at all?
 
IIRC (int[N])({ foo, bar, baz }) is not fine because the source expression is not a valid expression.
 
@Rookie What do you mean?
 
8:11 PM
@EtiennedeMartel It's a C question. TTBOMK C doesn't have initializer list. They have brace initializers and compound literals.
 
Comeau C/C++ 4.3.10.1 (Oct  6 2008 11:28:09) for ONLINE_EVALUATION_BETA2
Copyright 1988-2008 Comeau Computing.  All rights reserved.
MODE:strict errors C++ C++0x_extensions

"ComeauTest.c", line 6: error: incomplete type is not allowed
  const int *array = (int[]){1,2,3,4,6};
                      ^

"ComeauTest.c", line 6: error: expected an expression
  const int *array = (int[]){1,2,3,4,6};
                            ^

2 errors detected in the compilation of "ComeauTest.c".
 
@LewsTherin i mean, whats the point using if(x <= 1) x = 1; instead of if(x < 1) x = 1; : if x == 1, then whats the use of changing it back to the same value...?
 
@LewsTherin He means you're setting x to 1 if and only if it's already 1.
 
Ah yeah I have no idea. Must be a bug.
@Cheersandhth.-Alf Yep, same error in VS 2012.
 
It's a C question, not C++. Nothing to investigate here.
 
8:13 PM
@luc: the point is, not even meaningful in c++, at least not in c++03
 
@Cheersandhth.-Alf It's not valid Forth or Haskell either.
Or Lisp, or...
 
It's very likely to be correct C, and if it isn't, it should be a minor error.
 
there is a lot of weird code here... for example, whats the purpose of this: 1 *1.0 ? :P
 
I don't know its purpose but it probably failed it.
Damn typos.
 
8:17 PM
@LucDanton what is?
 
10 mins ago, by Etienne de Martel
@LucDanton Well, then, take a look at this answer.
 
doesn't look like any C i've known
are you referring to some C1x feature?
 
No, it's some good old-fashioned C99 from over 10 years ago.
 
chapter and verse, please
 
Ooh. The stakes have been raised.
 
8:20 PM
No thanks. Google for "C99 compound literal" or something.
 
@LucDanton Oh wtf was that?
[5] = 100 Da hell?
 
It's a compound literal (maybe I should have pointed this out earlier) with a designated initializer.
Again, C99 is over 10 year old. You can read books or manuals or whatever.
 
@LewsTherin This geezer has a few tricks up his sleeves.
 
Impressive, at least to a noob.
 
I'm on the fence with compound literals (at least when it comes to bringing them to C++ -- they do make sense for C), but I do envy designed initializers to an extent.
 
8:24 PM
@LucDanton yeah, but not implemented by msvc
 
@LewsTherin designated initializer. C99 allows things like int x[10] = {[1] = 0, [5] = 1};. It also allows things like struct { int a, b, c} X = { .c = 1}; In the first, you're initializing x[1] and x[5], but leaving the rest uninitialized. In the second, you're initializing X.c to 1, and leaving X.a and X.b uninitialized.
 
So in the first example does that mean it has an array of 5 elements?
That's actually really cool.
 
Xeo
@JerryCoffin And also (struct X){ .a = 5, .b = 6, .c = 7 }
 
@JerryCoffin I'm reasonably sure that in the first version they're 0 initialized (just as they would be with e.g. { 0 }). I don't exactly recall for structs though.
 
@Cheersandhth.-Alf ideone.com/4ieXb
 
Xeo
8:26 PM
Kinda like a constructor with named parameters :D
 
Similar to object initializers in C#
 
@LucDanton I don't recall its being that way, but I'm not feeling ambitious enough to look it up and check.
 
@Furqan I think the point here is the syntax depends on the compiler.
 
@Xeo Yeah, sounds right.
 
@Furqan that looks like language extension. c++ does not have compound literals.
 
8:29 PM
-6
Q: Java pointers reinvented

Sophie SpernerC++ supports pointers whereas Java does not. But when many programmers questioned how you can work without pointers, the promoters began saying "Restricted pointers.” So we can say java supports Restricted pointers? See for more.

I would have thought a pretty face would soften hearts
 
^ the java language spec says java has pointers. so, it was wrong...
 
Oh I do agree. But TJPL does admit that C++ pointers are references in Java
 
lol it was removed
 
Yeah ha ha
 
good day today
i learned compund literals (c99)
 
8:35 PM
@Xeo Finished my first route of Saya no Uta and I think it was rather fucking awesome.
 
@Cheersandhth.-Alf I'm learning about it too, rofl.
 
Xeo
@StackedCrooked Cool, how long did it take in total?
 
I spent noon and evening on one route. But I'm a slow player probably.
Around 8-10 hrs.
 
0
Q: I need a decent alternative to c++

wxiiirI've learned php and c++, i will list the things i liked and didn't liked on each of them, how i decided to learn them in the first place and why i feel the need to learn a decent alternative to c++, i'm not a professional programmer and only do projects for myself. PHP - Decided to learn becaus...

Advantage of PHP: "Pretty consistent syntax for all stuff"
 
ow
 
8:39 PM
Explain the meaning of "going walrus"
 
I don't ever remember PHP being consistent with anything.
 
@IDWMaster Why do you need to know. No one ever goes walrus.
 
how isnt PHP consistent?
 
@Insilico: PHP is consistent in its inconsistency
 
example?
 
8:41 PM
@StackedCrooked How can you make that claim if you can't provide a definition of going walrus?
 
Well, I'm a room owner.
 
I have that authority.
 
@StackedCrooked Just because you're a room owner and you post something doesn't mean it's a true statement.
 
8:42 PM
@netcoder what about those? parameter order?
 
@Rookie: yep
 
Just curious what it means.
 
I'm not claiming to make any true statements.
4
 
Xeo
Java fell second on language popularity (TIOBE)... behind C. So it's still hot especially with the big data wave coming. — m3th0dman 43 mins ago
sigh
 
@netcoder well, i dont think its PHP's fault in that sense... i also hate the parameter orders though. fking confusing me. but PHP syntax is consistent IMO
except the switch with continue in it...
 
8:43 PM
@Rookie: if it's not PHP's fault, then who's fault is it?
 
@netcoder those guys who wrote the functions...
 
@Rookie It's sure as hell not. You have functions that look that functions but aren't actually functions. array() in PHP is not a function.
 
@netcoder Somebody's mum.
 
@Rookie: oh right, because half of PHP wrote itself (which would actually explain a lot)
 
Xeo
@netcoder One takes a single array, the other can zip them up and walk across multiple
 
8:47 PM
@Insilico indeed... indeed.... and isset() too... thats a bitch
 
Xeo
@Luc, do you have a snapshot of GCC 4.8 handy?
 
Not right now no.
 
is g++ 4.7 much better than 4.6.2?
 
Xeo
Found a bug with 4.7, and want to know whether that's fixed in 4.8
 
i just used an old installer and it installed 4.6.2
 
Xeo
8:50 PM
@Cheersandhth.-Alf C++11 support is orders of magnitude better
 
4.8 is not stable last time I checked (august).
 
Xeo
@StackedCrooked Sure, but I can still test if a bug is fixed :)
 
@Xeo do you remember magic incantation to make it upgrade?
 
Xeo
Sorry, no.
I never bothered with installing GCC. :/
 
Xeo
8:51 PM
Only ever used 4.4.5 on my Debian box
 
I have 4.7 and 4.8.
 
g++ 4.7.2 came out yesterday and fixed 75 bugs from 4.7.1
 
Xeo
Sweet, can you compile this snippet and tell me the compiler output with 4.8?
@Rapptz oh, well, maybe it's already fixed there then
 
@daknøk IMPOSSIBRU!!!
 
@Rapptz it seems the installer i used was the latest one after all, 20120426, but not the version of g++ installed
:-(
 
sbi
8:54 PM
@StackedCrooked Is that true?
 
It should be 20120920
 
Xeo
@Rapptz Do you have 4.7.2 installed?
 
@Xeo Compiles. But -Wextra reports unused param.
 
Not yet.
 
Xeo
8:55 PM
@StackedCrooked Ew
 
~ $ g++ -o test -std=c++11 -Wall -Wextra -Werror -pedantic-errors main.cpp
main.cpp: In instantiation of 'int f(H) [with H = main()::<lambda()>]':
main.cpp:5:9:   required from here
main.cpp:2:6: error: parameter 'h' set but not used [-Werror=unused-but-set-parameter]
 auto f(H h) -> decltype(int(h())){ return 42; }
      ^
cc1plus: all warnings being treated as errors
 
~ $ g++ -o test -std=c++11 main.cpp
=> ok
 
Xeo
ew
GCC shouldn't be able to create an int from a void returning function invokation...
Hm
How could you make a function SFINAE out if a supplied functor doesn't return void, but without enable_if?
 
@Rapptz where do you get that?
 
9:00 PM
ftp. I actually haven't installed it yet though, so I guess I wouldn't know.
 
template<typename Functor, typename = decltype( ns::eat(std::declval<Functor>()()) )> void f(Functor&&); with eat taking anything.
Wait, doesn't?
Too many negations, I'm confused.
 
Xeo
That SFINAE's out if it does return void :/
 
@sehe What? The impossibru happened! Impossibru!
 
This meme could easily be abused in a Bru advertisement.
 
natalie imbruglia
jus' free associatin'
 
9:03 PM
:D
In Bruges (This is were I lived until I was 25.)
 
@Xeo Use conditional operator: e.g. true ? foo : void().
 
Xeo
@LucDanton Oh, that's smart, thanks!
 
@Cheersandhth.-Alf Not gonna click. I heard that song a few times much many already.
 
also, it's VEVO, and they've added pictures of faces of what they think are the main audience (young guys) on left and right hand margins
i wish some of those who go amok shooting at us universities, would rather bring their firepower to the Business Persons who try to decide for us who we are and what we should like
yeah, i'm in a bad mood
BUT
australia has the most awesome music artists, at least female
 
@Cheersandhth.-Alf I like Kylie.
Posted song ^ has rather nice buildup.
 
and long before kylie there was what's her name olivia newton john
and there's the bass player gal who played with jeff beck
Tal Wilkenfeld (the girl on bass)
 
@Cheersandhth.-Alf Like/dislike proportion is nice.
 
9:23 PM
This is typically Saturday night city atmosphere:
 
@Cheersandhth.-Alf Lol the 70's are gone :D
 
but olivia is australian!
 
Windows Disc Burner isn't bad at all..
 
@Cheersandhth.-Alf I like her Physical song.
It's clearly about fitness training.
 
9:28 PM
yes
 
Because fitness training is a physical activity, obviously.
 
Physical activity leads to tiredness.
It's no good.
 
It also leads to global warming.
Let's make noise!
2
And be hateful.
 
@StackedCrooked You Failed
 
TRue.
 
9:36 PM
> Artist: Rammstein, CHRISTOPH DOOM SCHNEIDER, DOKTOR CHRISTIAN LORENZ, TILL LINDEMANN, PAUL LANDERS, RICHARD Z. KRUSPE, OLIVER RIEDEL, CHRISTOPH DOOM SCHNEIDER, DOKTOR CHRISTIAN LORENZ, TILL LINDEMANN, PAUL LANDERS, RICHARD Z. KRUSPE, OLIVER RIEDEL
talk about all caps..
 
@Rapptz Where do you get that list?
 
It's on YouTube. Under the likes and views.
 
@daknøk Did this guy answer his own question with a sockpuppet?!
 
He can't see it because it's deleted and he only has 1.3k rep
 
> removed from Stack Overflow for reasons of moderation
 
9:39 PM
@Rapptz Who's he? You know, it wasn't always deleted
 
The questiion wasn't moderate enough.
 
@sehe daknok. He can't see the question you linked.
 
A Shih Tzu ( ; Mandarin: ) is a breed of dog weighing with long silky hair. The breed originated in China. Shih Tzu were officially recognized by the American Kennel Club in 1969. The name is both singular and plural. Names and etymology The name Shih Tzu comes from the Chinese rendered according to the Wade-Giles system of romanization, in use when the breed was first introduced in America; in the modern Pinyin romanization this is shi-zi. Its Mandarin Chinese pronunciation is approximately . The name translates as "lion", so named because this kind of dog was bred to resemble ...
^ My mom has this.
They are the most enthusiastic and idiotic creatures on this planet.
 
Why do all tricolour dogs look cute/adorable? :(
 
It's impossible to dislike them.
 
Xeo
9:44 PM
@Luc used your trick for void:
0
A: Any way to match on return value in C++11?

XeoGive me a reason on why the compiler should be able to infer why which overload to select based on what you do inside the function? In C++, overload resolution is only concerned if every argument is matchable to a parameter. The return type and the content of the function are of no interest what-...

 
@StackedCrooked Daisy does that too.
you can even chase her around the house with her own food bowl
 
9:53 PM
and imagine Daisy vs Vaccuum Cleaner
 
I can imagine.
 
damnit
why can't I find that Jedi Douchebags video
 
@DeadMG not the droids?
 
evening fellas
 
Hi Tony
 
9:56 PM
damn
 
what's new here?
 
@StackedCrooked This is science.
 
this shit should be illegal- you type in a search term and it's not exactly what you were looking for?
 
fuckin Outlooks sucks
I just watched the movie Cowboys & Aliens. Not bad.
 
I'm gonna make me a C++ book.
 
Morkdown fail
 
Temporary.
Firefox again.
 
@StackedCrooked how did you come to watch a video about planking?
 
sbi
> NASA HAVE UPDATED ME TO iOS 6. APPARENTLY I'M NOW IN NORWAY. — MarsCuroisity
 
@TonyTheLion I clicked on the video thumnail that had tits.
 
10:01 PM
hahah
 
Xeo
@sbi "curoisity"
 
@sbi LOL
 
sbi
@Xeo I did notice this.
 
Right.
 
Man, I was really grumpy today
I cursed my computer to hell.
 
10:05 PM
Just when I was nearly falling asleep the beer make me feel awake again.
 
heheh
 
Xeo
@TonyTheLion To hell and back I hope. Else, who's PC did you steal to be online right now?
 
@Xeo I have multiple PC's
 
Or he is in hell himself.
 
just for that case where my anger get's the best of me
@StackedCrooked or that.
 
10:06 PM
@Xeo Had to use his porn PC for regular browsing.
 
@DeadMG LOL
 
@TonyTheLion Or you got a remote desktop connection from hell.
 
@StackedCrooked Yes, I'm RDPíng in from Hell to tell you guys to come and join me in the fires of hell!
Nice & Cosy too :)
 
Let's go on a vacation to hell.
 
Xeo
I hope it's warm, cuz it's fucking cold here.
 
10:07 PM
You can only have a one way ticket to hell.
@Xeo it is :)
One does not simply, return from Hell.
 
@TonyTheLion Sorry, but M theory indicates that it is scientifically possible to visit Hell and return. But possibly not from this universe :P
@TonyTheLion Fail. It needs to be like, void Hell() [[noreturn]].
 
hahah
 
user image
3
 
@Rapptz Really? Well, I wasn't aware of that. Regardless, He managed to both comment on the question and tweet about it :) I reckon he still knows what the heck I'm on about
OP deserves permaban, IMO. http://stackoverflow.com/q/12544424/1203803
Anyways, not feeling too well, gonna hit the sack.
At least when bloddy windows update on my mom's friend's 512Mb Windows XP laptop finishes. That could be a while. <gnash-teeth/>
 
10:15 PM
that would piss me off
 
Biiiiig time
I spent little time illegally downloading the legitimate retail ISOs after all. Bloddy device doesn't want to run anything.
Also, interestingly, Chrome has issues completing downloads of ~200Mb on it. I suspect it wants to map the whole file in memory at the final instant (before renaming the file inplace)
 
@sehe i'm glad my 256 MB Windows XP box crashed, even if I lost some data
Windows Update really sucks donkey balls, and it lies: its activity is not reported by Task Manager
 
@Cheersandhth.-Alf You ... what...
 
it really ground to a halt, so to speak
 
I'm just glad I never actually had an XP box. Or Vista. Or whatever. I do have a MediaCenter stuck on Win7, but I guess I'll repurpose it as workstation. Soooon.
@Cheersandhth.-Alf One malware/adware toolbar too many. Sad story
 
10:20 PM
oh no, just windows update. and something
 
@Cheersandhth.-Alf Inneresting; can we say R O O T K I T?
 
yes, i removed 2 in its lifetime
maybe at the end it was a 3rd
had to be pretty advanced though, if it was
 
Glorious days they were. Lone rider out in the World Wide West, contracting everything that God forbade.
Brazenly fixing it with his bare hands
 
man
Weekend is almost over. :(
 
10:27 PM
only half way through, no?
 
Yeah, that’s almost over.
Weekend is already almost over on friday.
 
lol
there is a next one coming
just six days away
 
@daknøk I'm almost over your mom.
 
and they they tend to go quite fast
 
@TonyTheLion causing them to stutter?
 
10:30 PM
@StackedCrooked You climbed all over her belly?
That’s higher than the Mount Everest.
 
@daknøk Almost.
 
Sub UnglueParagraph()
    With Selection.ParagraphFormat
        .KeepWithNext = False
        .KeepTogether = False
    End With
End Sub

Sub InsertEquationObject()
    Selection.InlineShapes.AddOLEObject ClassType:="Equation.3", FileName:="", _
         LinkToFile:=False, DisplayAsIcon:=False
End Sub
^ Word 2010 essentials.
 
it's wordy alright.
ClassType:="Equation.3", FileName:=""
Hm...
 
Eww VBA.
 
I don't know what this does, but I don't like it... :)
 
10:33 PM
Or whatever it is. It is terrible.
 
do you guys remember how to write type traits?
 
Haskell FTW.
 
I always forget some necessary bit of boilerplate
 
@DeadMG T Y P E SPACE T R A I T S
 
try C++ Templates: The Complete Guide
 
10:35 PM
ohhhh I think I figured it out?
 
@Cheersandhth.-Alf out of vague interest, what does it do?
 
@StackedCrooked I like that song, to be honest.
 
@LordAro as the names imply
 
@daknøk I didn't say that I disliked it.
 
It has five starz in mah iTunez library.
 
10:38 PM
@LordAro i use it for code listings. they're "glued" by default so as to keep each routine on a separate page. i unglue blank lines between routines
 
sounds fun
 
(apologies for the weird edit, btw - didn't realise what i was doing :L )
 
@StackedCrooked that's XP look
 
@Cheersandhth.-Alf Yeah, I had to install VMWare because this VN is only available on Windows.
@LordAro Next time make sure you realize what you're doing!
We can't have that.
 
10:41 PM
/me hides in shame
 
ah
A is a work of interactive fiction, featuring mostly static graphics, most often using anime-style art or occasionally live-action stills (and sometimes video footage). As the name might suggest, they resemble mixed-media novels or tableau vivant stage plays. They are analogous to a digitized version of a Choose Your Own Adventure novel. In Japanese terminology, a distinction is often made between visual novels proper (abbreviated NVL), which consist predominantly of narration and have very few interactive elements, and adventure games (abbreviated AVG or ADV), which may incorporate p...
TIL "compound literal" and "visual novel"
and it's not yet midnight!
 
It is midnight.
 
Dumbass.
 
10:43 PM
:)
 
it's 23:43 here
says my laptop
 
I thought Norway was GMT+1 just like Belgium.
 
@StackedCrooked Alf is just high.
 
@daknøk You mean Northern?
 
No, high as in weed.
 
10:45 PM
As in high wheat?
I'm just playing dumb.
I remember they were gonna close the coffeeshops in the Netherlands. Did that actually happen?
 
Not close them, just restrict access to certain services to foreigners
Or should I say, certain menu items...
 
They should allow the selling of weed by post order.
At least on the national level.
Internationally would probably be problematic :)
 
but you don't get the mood by post order... ;)
 

« first day (707 days earlier)      last day (4250 days later) »