« first day (1403 days earlier)      last day (3546 days later) » 

9:00 AM
@quantdev I don’t know if it’s the best duplicate, but I would agree it is one.
 
@R.MartinhoFernandes about 2) yes, but with clang the mapping is 1:1
 
@LucDanton I dont see sequence point issue here, I see the behavior as well defined...
 
There's a infinite number of possible types with a nested type named vector_type that is an alias for value_type __attribute__((ext_vector_type(3)));.
 
@user1095108 The std::decay part is wrong. What do you do with multi-dimensional arrays?
 
9:01 AM
Or better: there's a infinite number of possible types with a nested type named vector_type that is an alias for whatever-you-choose-for-your-value-type.
 
@quantdev There are two counter++ in there. Well, three.
 
@R.MartinhoFernandes that was a wrongly written trait
 
@quantdev You can check out the other answer to the duplicate.
 
Yes, but a function call defines a sequence point
 
9:03 AM
@user1095108 Oh well, put code where your mouth is, then.
 
so each operator<< call does, no ?
 
@quantdev counter++ is not a function call.
 
I know
operator<< is
 
@R.MartinhoFernandes Ok, I'll return to my question later today.
 
Yes, each call to op<< is sequenced.
 
9:03 AM
voted to close as unclear
ping me later if you fix it
 
But before the op<<s can be called the counter++ must be evaluated.
 
Coliru doesn’t seem to terminate compilation on my end.
 
@LucDanton Hm? How so? They had an entire section dedicated to it, 4.10.
 
Also, function calls only sequence the invocation and the evaluation of their result. They don't sequence each other.
 
@Rapptz Is it frequently asked?
 
9:05 AM
f(g(), h()); // the calls to g and h are not sequenced
 
@Rapptz Well, it does nothing special or different from what we have. Still, an implementation might still provide better compilation times.
 
I was seeing f(g(h()))
 
> execution expired
 
@LightnessRacesinOrbit A quick search leads to ~100ish results. But I think I found a dupe.
 
@R.MartinhoFernandes Perhaps if counter has class type :o)
 
9:06 AM
@quantdev Yeah, that's what we have there, but f(g(), h()), h()) doesn't sequence the two calls to h().
@Arcoth It's an int.
 
@R.MartinhoFernandes §13.6 :o) :o)
 
@LucDanton I think that's due to it's 'minimalistic design' and the need (want?) to interop with existing build systems.
 
@R.MartinhoFernandes Iyes but how does it apply here ? If you call operator<< f(), you got something like f("WHERE", f(time_name, f(">= :start_time_" , f(counter++ , f(" AND ", f(time_name, f( " <= :finish_time_", f(counter++, f(" AND something_else = :", counter++)))))))))
 
@R.MartinhoFernandes Yup. You could use a workaround though (through initializer-lists).
 
@quantdev To reduce the problem to it's simplest form: f(counter++, counter++) is not well-defined for int counter;.
 
9:08 AM
@R.MartinhoFernandes yes I agree
 
f(g(h(), counter++), counter++) doesn't either, and so on.
 
@R.MartinhoFernandes It would be undefined behavior just because you're not allowed to do a lvalue-to-rvalue conversion of an uninitialized value. The sequencing thing comes later.
 
1 hour ago, by Luc Danton
N4047 kinda looks like module assembly more than anything else. Good module assembly mind you. Mostly it’s the rule about not messing with namespacing that concerns me. It makes sense for compatibility, but I’m worried about legacy-free code looking a bit too busy with export { namespace foo { and so on. Plus everyone and their mother will have their own way of mapping module to namespace :(
I think my concern about templates fit in there too.
 
In a general form, f(expression_with_counter++_in_it, expression_with_counter++_in_it) is not well-defined.
@Arcoth Who says it's uninitialised?
 
@R.MartinhoFernandes That's not general enough though.
@R.MartinhoFernandes Well... your declaration kinda implies it....? Dunno
 
9:10 AM
@R.MartinhoFernandes yes, but I can't see it here
 
@Arcoth It's general enough to account for the code in the question.
 
I'll think about it ... thx
 
@R.MartinhoFernandes Okeydokey
 
@R.MartinhoFernandes I disagree.
f([&] { counter++; }, [&] { counter++; }) :D
 
@Arcoth int counter; int main() { return counter; } is a program with well-defined behaviour. (Equivalent to int main(){})
 
9:12 AM
@user1095108 YOU ARE WRONG.
 
thankyou so much man . . . .. ive been looking for a solution for the past hour . . . i completely missed that * ! — Mustafa Mujahid 6 mins ago
a whole HOUR
 
There are other declarations without an explicit initialisation that don't imply lack of initialisation, namely those of member variables.
 
Oh that reminds me, what was the last C++14 draft? I have n3936 from March. That seems to be it—together with n3937.
 
fuck this is a good song
 
Saved by GEMA.
 
9:19 AM
Is anyone else detecting trouble ahead for Doctor Who? First Coleman leaves and now Capaldi is suggesting that he hasn't quite settled into the role yet. Finally, the trailers I've heard on the radio really haven't grabbed me. I don't know why but this is making me concerned for the new series (which starts this weekend).
 
@R.MartinhoFernandes I've heard many legends of music being blocked en masse in Germany
I'm kinda glad I don't live there
 
@LucDanton I've been using n3936 on SO. Well, like, the two times I've done anything related to C++4.3.14 C++14.
 
@AlexM. It's not technically blocked.
It's Google and GEMA failing to reach an agreement when it comes to money.
 
@Rapptz People are right cunts about this so-called "minor edit" phenomenon. If the edit is correct then the edit is correct
 
9:23 AM
agreed
"too minor" is more often than not abused
 
Reject with too minor instead of doing the major edit you were looking for.
 
iunno, I use 'too minor'.
like if all someone does is add backticks to everything
 
I use 'invalid' for that.
 
^
as lrio said, an edit is either correct or wrong
 
I use 'too minor' for people changing between BrE and AmE and such.
 
9:27 AM
saying an edit is "too minor" is like saying "the edit makes the post better but meh it doesn't make it THAT much better so let's not edit it at all"
 
0
Q: Using PHP/MYSQL to sort data based on partial values

quatchisI got prefix values setup for my products that help me identify drinks from food. If its a drink it will contain (D) as the prefix. (D)Beer Burger (D)Soft Drink Sandwich SELECT * FROM orders order by pname I want to sort the drinks together and the food together in a single query. Hope th...

wtf
 
^there are people that treat any question or answer as out-of-bounds to anyone but the op
 
@AlexM. Yeah. I guess the problem is clogging up the review queue; it kind of makes sense for suggested edits. But the meta police like to invoke it on high-rep users' edits too, in conversation.
@R.MartinhoFernandes That's more like "invalid", isn't it?
@Rapptz same here - "invalid" not "too minor"
 
@LightnessRacesinOrbit I use it for AmE to BrE as well.
If that's all it changes it's nothing but noise.
 
AmE is nothing but noise
 
Xeo
9:29 AM
I'd classify edits in both directions as invalid.
 
@AlexM. no, it's like saying "let's not change someone's words for no reason". It might be overused, but it's definitely valid. You can alienate a lot of people by just sneaking in and changing what they themselves wrote in the question they asked.
 
but changing what they asked means the edit is invalid
 
@Rapptz huh, I usually consider that valid. It genuinely aids readability, without in any way changing the meaning of the question
 
not that the edit is too minor
 
Xeo
@jalf Not if backticks are used on not-code.
 
9:31 AM
I don't mean the valid ones (like the one I linked)
 
@AlexM. not if it's just tiny stuff like fixing a typo or adding a comma
@Xeo oh, those can fuck right off
 
@jalf everything means everything.
 
I meant in invalid places like
Hello there.
 
gotcha
Those need to be burned with heat of a thousand suns
twice
 
Xeo
Ugh, I need food.
 
9:32 AM
me too
 
@@Lightness Races in Orbit . .. btw if you are being so nice can you help me with another problem . . you see the line obj.name=ptr->name . . .ive commented it . .because it gives an error must be a modifiable value.. . .if not fixing it can you please guide me a little!! — Mustafa Mujahid 2 mins ago
sigh
 
Niceness gone.
 
Niceness Races in Orbit.
 
I am doing a clear on an ArrayAdapter, why do I get java.lang.UnsupportedOperationException?
 
@Lightness Races in Orbit . . .first of all im not a software engineer nor am doing a degree in CS . . . im an electrical engineer . .with a single c++ course in our curriculum . . . if you want to talk about being worthy, why don't you step into my playing field. . . instead of being so rude and boastful showing how high and mighty you are . . we are all good at something , and the least we an do is help others at what they are not . . it is clear i did not commit a logical error it was just type error! — Mustafa Mujahid 9 mins ago
 
9:36 AM
"I saw you were so nice so I decided to make you my bitch"
 
"just a type error" therefore let's use that close vote reason mmkay
@Rapptz Niceness Races out of Orbit
@chmod711telkitty Because that operation is unsupported.
 
@chmod711telkitty you don't clear adapters, you clear the collection the adapter uses
 
oh god his first question is dreadful
fast heading towards a question ban
@AlexM. Why does that function exist, then?
 
it probably inherits from something that has it
 
63
A: Why can't one add/remove items from an ArrayAdapter?

CommonsWareYou probably initialized the adapter with a plain Java array (e.g., String[]). Try using something that implements the java.util.List interface (e.g., ArrayList<String>).

@AlexM. Nope
 
9:39 AM
@LightnessRacesinOrbit Java's standard library violates LSP left and right.
 
@R.MartinhoFernandes PoMS
 
yeah I was wrong
 
@AlexM. go home and think about what you've done
 
@LightnessRacesinOrbit Dunno what that means.
 
@LightnessRacesinOrbit I can't damnit, I have to sit here 6 more hours
 
Xeo
9:40 AM
@R.MartinhoFernandes Principle of Most Surprise
 
^
@AlexM. I can damnit all day long
 
I don't remember what kind of collection that was implemented in Java did the unsupported operation thing, but I'm sure I've seen it here some time ago
 
java.lang.UnsupportedOperationException is more appropriately named java.lang.LSPViolationException.
 
What am I missing here?
 
CollectionWBaseOpNotSupported implements SomeInterface {
   ThatBaseOperation {
        throw new UnsupportedOperationException(...);
   }
}
something like this
 
9:44 AM
I mean, fair enough, that first headline talks about a relative difference rather than the final value
 
@LightnessRacesinOrbit Government wants passengers to pay for more of the rail network. So 1.5% for inflation and then 2% for reduced subsidy/increased investment.
 
but it still reads funnily
oh, it does say absolute
 
@R.MartinhoFernandes Only if the interface specification doesn't permit them to throw it.
it's still a dumb thing, though.
 
Those interfaces are crap.
Especially because so many of those that explicitly document that possibility don't even have a way to test if the operation is supported.
 
9:47 AM
pretty bad news for their business
 
Might as well throw static types out :v
 
with the bathwater
 
man, imagine if in the future something like different browsers supporting things the others do not and actual operating systems supporting only specific browsers
like, Firefox having this awesome feature that Chrome doesn't
and... Google making a deal with Microsoft so Windows only supports Chrome
no idea how much sense this makes but since we're moving our software to browsers pretty quickly, browsers will essentially become a platform for software like how operating systems are now
 
I am writing a Bentley-McIlroy 3-way partition that will be called from inside re-implementation (for educational purposes mostly) of std::sort. This means that I only have comparator with strict weak ordering, or <.
Am I correct in assuming that the only way to implement if (a == b) is if (!comp(a, b) && !comp(b, a))? (And that if (a > b) is equivalent to if (b < a)?)
 
Yes.
 
9:57 AM
@AlexM. What do you mean "future"?
 
I meant something more important than the differences found today
something that would force businesses to use a specific browser for example
 
 
Yeah, what do you mean by "future"?
 
future
 
@LucDanton Thanks.
 
9:58 AM
ActiveX is a software framework created by Microsoft which adapts its earlier Component Object Model (COM) and Object Linking and Embedding (OLE) technologies for content downloaded from a network, particularly in the context of the World Wide Web. It was introduced 1996 and is commonly used in its Windows operating system. In principle it is not dependent on Microsoft Windows, but in practice, most ActiveX controls require either Microsoft Windows or a Windows emulator. Most also require the client to be running on Intel x86 hardware, because they contain compiled code. Many Microsoft Windows...
The future is now!
 
Everything you mentioned already exists.
 
Is ActiveX still actually alive? (Outside of legacy apps)
 
Ask the countless people that suffer through IE because their intranet sites don't work on any other browser.
 

« first day (1403 days earlier)      last day (3546 days later) »