« first day (559 days earlier)      last day (4381 days later) » 

9:00 AM
Extremely good morning.
 
@classdaknok_t still examenstunt?
 
@sehe nein. Meivakantie.
 
That's better. 2 weeks?
 
No ):
one
 
Awright
 
9:01 AM
@sehe It does seem so
 
Could anybody decrypt this question? Or am I not the only one who doesn't understand it?
0
Q: Reduce C++ source by variable substitution and dead code truncation?

solotimSuppose I have some template classes with Nontype parameters. template <int hi, int wid> class SomeThing { ... } I need to reduce this source with specific value of hi and wid, say, hi=2; wid=3. Because of this, there might be some code becomes dead code, and I also need to truncate them...

 
I don't get it either.
 
It seems he's looking for 'preprocessor' that physically expands templates with the actual template arguments
 
@sehe you mean a pre-pre-processor :P
 
4
Q: Pre-preprocessor

SimonI want to have a C pre-preprocessor which is filtering some #define statements from the sourcecode without changing anything else. Why? This should be used to remove some client specific code from the sources if the source is handed out to another client. Does anyone know of an existing solutio...

:P
 
9:10 AM
@thecoshman More like postpreprocessor.
 
so... something like a perl script that can pass a file to remove sections, wouldn't take more then a hour to write, test and pass a big project. or if the manager asks, about a week :D
 
Honestly, I don't think the level of static analysis the OP asks (dead code elimination) is possible at all without preprocessing (C++ cannot be reliably parsed without preprocessing) so it really should be just a preprocessor (that handles all preprocessing including template expansion)
@thecoshman ugh. I'm worried that you might actually believe that
 
@sehe well, if they had something like /* START CLIENT A / and / END CLIENT A */ would not be hard to pass the file to not include that section. But I didn't lookat any more then the one box :P
odd, I just had a 'must be logged in' warning when I first tried to post that :S
 
@thecoshman are we talking about the same Q ?
 
@sehe I was talking about the one daknok posted
 
9:15 AM
Yeah which one? I posted two.
 
@thecoshman Sigh. That's an OLD question. Responding to your 'pre-preprocessor' joke
 
@sehe meh
 
It would help if you actually read stuff, instead of just reacting to words :)
 
probably :D
 
Meh I wanna write something useful.
 
9:17 AM
hai
 
hello
 
@classdaknok_t Code or prose?
 
Code.
 
Honestly, code == prose :) (or at least should)
 
@classdaknok_t That's tough. Most things exists. Look for things that don't exist. Biggest chances in art/entertainment
@ScarletAmaranth code == poetry (stylistic style)
 
9:18 AM
Looking for things that don't exist is difficult. xD
 
if I am not sure if I need unique or shared pointer, am I best to got with unique and change it later?
 
If unsure, use a unique_ptr until you really need to copy it.
 
It's ok if it already exists in your imagination. But it hard to get the set exclusion of reality and your imagination, intersected with the set of feasible ideas
@thecoshman Always
 
Biggest chances in art/entertainment -> True dis.
 
9:22 AM
It's hard to asses whether those count as 'useful' though
 
Well, it's like saying that game programmers should all start working in ... bioinformatics, or something :)
 
Are you saying that games aren't useful?
 
I like games ! :)
 
@sehe assess and asses are very different things. :P
 
asses are always useful, whatever the context
5
 
9:26 AM
^^
 
@classdaknok_t I'm not convinced that all games are. Especially the vapor-ware flavoured games
 
Unless you are coding in C. If you wouldn't have an ass, you implicitly wouldn't have a pain in the ass.
 
@sehe Honestly, i prefer playing games to sitting at pub getting drunk.
 
See, the ass is useful to guard against the perils of C
 
@ScarletAmaranth I prefer both at the same time.
 
9:33 AM
Meh. I don't like either. They are equivalent. Let me guess, the money lazyness argument won it.
 
@sehe Entertainment plays an important part in everyone's life ... (Hell, even Ceasar realized it ...)
 
@ScarletAmaranth I don't remember saying otherwise
@ScarletAmaranth And Caesar's realization had more to do with retaining power, I think, and less with primary needs of humans. It had to do with controlling masses when their primary needs had already been met.
 
if I have a tree of 'nodes' is a raw pointer the best way to refer to parents? or should I use something like const node& parent?
 
@sehe You said it, they "primary" needs -> entertainment
raw pointer works the best i daresay
 
@thecoshman const reference members are always going to be a pain (no sensible assignment, no default copy/move construction possible)
@ScarletAmaranth Reading Comprehension required
 
9:47 AM
yay for raw pointers :D
 
@sehe No, i mean, he realized that the only way to control the people is to fulfill their primary needs, with entertainment among those needs.
@sehe Tho he probably couldn't care less about them, that's not the point.
 
@ScarletAmaranth So, that's what you mean, not what I said
 
@sehe Oh, yeah, i really need to learn to read ^^ But you can't really say that they had been met already since he re-lists "bread" (definitely a primary need) and he mentions it along with games.
 
@ScarletAmaranth ?! So whenever someone lists two things alongside, they must be in the same category? That's a nice false reasoning right there
 
@sehe Nope, that's what i reckon he had meant. He placed them on an equal footing.
 
9:52 AM
@ScarletAmaranth Ugh. Again, it is what you reckon, not what he said.
 
@sehe Ok, maybe there's a weird translation into slovakian. I know the following : "Chlieb a hry" which translates to: " Bread and games ".
 
I think Ceasar wasn't much of the theoretician (look at Maslow for that). I feel he more likely meant: People have primary needs (bread) and when these have been met, you need to occupy them - their secondary needs perhaps (play)
 
@sehe I don't think it implies that the bread has to be met first in order for play to be important.
 
Sounds more like he is saying you need to give both. If you can't feed the people, don't waste time entertaining them, if you can't entertain them don't waste time feeding them.
 
@thecoshman agreed
 
9:55 AM
@ScarletAmaranth Duh. It's like that in all languages. The distinctive feature is the use of and (conjunction). You are reading more into that than the linguistical meaning of it actually supports.
 
Whenever you say: "X and Y" you generally mean that they are equally important. (At least that's what i usually mean.)
 
@ScarletAmaranth Ok, you go a month with just games, no bread. We'll talk after.
 
@sehe I never said that.
 
oookay, so apparently some NAT-like functionality in our code has a habit of mapping everything to port 386 million + a small offset. I am pretty sure that is not a valid port number...
and yet, no one has complained that it doesn't work.
 
I think, on windows, the max is 5000 by default but can be changed to 65535
20
A: What is the largest TCP/IP network port number allowable for IPv4?

Greg HewgillThe port number is an unsigned 16-bit integer, so 65535.

 
10:01 AM
@jalf it could be looping around maybe?
 
that would mean clipping the high order bytes
 
@thecoshman I know why it does this. The code isn't terribly complex. I just don't understand how on earth it can possibly work
basically, it takes two port numbers, performs a <<16 on one of them, and then adds the two together. IOW, it's always by definition, going to result in an invalid port number, unless the first input port is 0
 
@jalf must just have been coincidental using valid ports
 
as far as I can see, it doesn't even clamp the result down to the valid range afterwards
 
if it works it works :D
 
10:08 AM
@jalf it is being assigned to an unsigned 16 bit field. It is clamped to valid range by definition. The surprise would be that the conversion isn't checked for loss of information
 
oh er.... I want to make a struct that is a pair of ints. I want to provide functions for addition and the likes. I also would like to be have this same struct known by two names, ideally where the member variables have different names. suggestions please
 
anything wrong with reference accessors?
 
which whats?
 
@thecoshman Or do this:
#include <boost/optional.hpp>

struct X
{
	boost::optional<X&> parent;
};

int main()
{
	X a, b;
	b.parent = a;
}
 
oh erm, sorry, new problem :D
I want struct size{ int width, height } and struct position{ int x,y} But both need to have a few operator overloads
 
10:17 AM
@thecoshman I know. I owed you the other one first
 
@sehe oh right :P
 
Real life proof of concept showing reassignment too: http://ideone.com/IBziN
 
well, that is one method, but a parent is not optional, all nodes will have to have one. except for the root node which I am handling in a special way. But the raw nodes them selves shall be abstract, so I think I shall be ok
 
@thecoshman It looks like you are violating ADT contracts. You will never need to assign a position to a size. You might add sizes to positions, or subtract positions to get sizes, but you cannot mix them.
Perhaps you are looking for explicit conversions (constructors/conversion operators)
 
it's just the basic logic is the same, the only difference is the names was hoping their would be a nice way to do this, with out having to C+P from one to other
 
10:22 AM
If you want to use some algorithms that can handle both, just adapt them. Using Boost Fusion logic:
#include <boost/fusion/adapted/struct.hpp>
struct size { int width, height; };
struct position { int x, y; };

BOOST_FUSION_ADAPT_STRUCT(size,(int,width)(int,height));
BOOST_FUSION_ADAPT_STRUCT(position,(int,x)(int,y));
 
I need some help with standardese
 
That way you could implement functions taking boost::fusion::tuple<int,int>& accepting both structs
@KonradRudolph Standardese?
 
The formulation “shall not” … does it imply that the behaviour requires a diagnostic by the compiler?
@sehe That’s what I said retconned
 
@KonradRudolph Depends on what it shall not. "Shall not emit a diagnostic" :)
 
Depends on the context.
 
10:23 AM
Damnit, why isn't there a definitive book guide for things not related to programming?!
 
So I should write these as two separate classes?
 
@Pubby that list would contain almost every book.
 
Shall not indicates a normative specification, AFAICT
 
@sehe (I think it conforms to ISO/IEC 2382 – so, yes)
 
@thecoshman You can share a bit of implementation (use a protected base class with the shared logic, and just pass references to your acutal fields).
 
10:24 AM
In this instance I’m concerned with 5.3.3., [expr.sizeof]
… which “shall not be applied to an … incomplete type”
This is all that the paragraph says, it doesn’t detail how a compiler should react, which makes me suspect that this is implied in the wording
 
@sehe so something like a sizeposbase which I prevent from being constructed?
 
Context:
1
Q: Why the size of the object is zero

santoshI am getting the sizeof of object as zero, which is ought not to be. Please explain me the concept as why the compiler is giving this answer? #include<iostream> using namespace std; class xxx{ public: int a[]; // Why this line is not giving error. }; int main(int argc, ...

 
@KonradRudolph I feel it should reject the code as ill-formed. That implies a diagnostic (not necessarily explicit about the cause). But let's page @JohannesSchaubLitb
 
“paging Dr Greenthumb”
 
do overloaded operators get inherited just like a normal function?
 
10:28 AM
 
@thecoshman That's a strategy. Another trick would be like
struct size : std::pair<int,int> {
	int& width;
	int& height;
	size() : width(first), height(second) { };
};

struct position : std::pair<int,int> {
	int& x;
	int& y;
	size() : x(first), y(second) { };
};
but that reintroduces the problem of reference members
@thecoshman yes
43 mins ago, by sehe
@thecoshman const reference members are always going to be a pain (no sensible assignment, no default copy/move construction possible)
^^ feel free to drop const from that quote
 
@sehe but this doesn't provide pos + pos fucntionality, I would still have to add that in my self
 
@sehe nope, that's the weird part. It is assigned to an unsigned int, and then eventually run through a std::stringstream and appended to a std::string
 
10:48 AM
@jalf huh - didn't you say you used it as a port number? Are you now saying you send this information to your clients as plaintext? It depends on what you are doing with it.
@jalf Also, any kind of NAT related stuff is going to specify source and destination ports. Now, dest << 16 + src doesn't seem like a strange way to encode the information, so if the actual routing 'protocol' uses it in that way, it would still be ok.
@thecoshman No surprise. Did you see the parts that weren't missing. I'm showing you ideas. I get only feedback on what is missing? (Surprise: they're not missing, they're just out of scope for this quick scribble)
 
@sehe I've been there :D
 
You can still use a mixin base class that extends the std::pair with the operators
 
let me just read up a bit on what exactly you get from std::pair
 
@thecoshman Precious little, but stdlib 'knows' about it and can use it. In TR1/C++11 std::tuple<> is also highly compatible with std::pair. So you get genericity for free. But any base struct with to int fields would do.
 
@sehe does it provide the operator overloads that I am after?
 
10:54 AM
@thecoshman Of course not. Look at the name?
 
So I may as well just implement my own 'IntPair' class that has the operators implemented. But when I derive it, the return type for operator+ would still be the base class...
 
@thecoshman I still think you are failing to realize how important semantics are for your ADTs. size and position are not just pairs of ints. They carry different meaning, and assigning size to position, or comparing them would be meaningless
 
@sehe we're sending it to the client, telling it which port to connect to
 
@jalf that's surprising
 
long story. But basically, the client connects to our login server, which establishes a VNC session on another server, and then tells the client how to connect to that session
 
10:58 AM
@thecoshman My point is that (a) you could still inherit that IntPair from std::pair<int,int> (b) need to name it differently (IntVec2 or IntTuple2 : something that matches the semantics of the operators that you define on it)
 
@sehe well, I get that I don't want to allow things like size = pos
 
@thecoshman How are you going to prevent that? Let me show you another C++ idiom, brb
 
ah, luckily one of our support guys knew what was up with it. In the code it's just referred to as a port, but apparently it's not actually a port number
 
struct tagPosition {};
struct tagSize     {};

template<typename Tag> struct IntVec2
{
	int a,b;
	// some operators for convenience
};

typedef IntVec2<tagPosition> position;
typedef IntVec2<tagSize>     size;
@thecoshman ^ that way you get all shared behaviour, but distinct types. You might want to combine with the 'field aliasing' as shown before, with all caveats
 
@sehe That's a good one o_O
 
11:13 AM
Today it's friday.
 
If you get into the habit of using tag types regularly, then you may be interested to know that you can do something like using position = IntVec2<struct tagPosition>; without defining the tag type.
 
11:47 AM
For once, there's an AMV that is actually fun to look at.
 
@classdaknok_t dang. I missed your (removed) message. Death by curiosity will ensue
@LucDanton That's pretty sweet.
 
@sehe I asked what the disadvantage was of references here, and I said that the compiler will likely optimize them out.
But the problem wasn't about memory.
 
@classdaknok_t Precisely. Thanks for saving my life, though
 
@sehe oooh, that does look fancy. Should do what I want. So those first two structs, are just to force distinct types
 
@thecoshman Yep. The tag struct idiom. See also Luc's addition
Tomorrow will be saturday.
 
11:57 AM
It appears that Wolfram Alpha doesn't understand humans.
 
@LucDanton is that just another way of saying typedef IntVec2<tagPosition> position?
 
@thecoshman That's not valid, tagPosition is not declared. The important point is not the alias declaration.
 
also, how come you are using lower case for the typedef? should it not start with an upper case like you would with class names?
 
So the equivalent is typedef IntVec2<struct tagPosition> position;
 
@LucDanton oh, so your line is combing the typedef with the creating to tag struct?
 
12:00 PM
@thecoshman It works as an implicit declaration (a behaviour inherited from C). Note that it's not a definition, so maybe that doesn't match your expectations for 'creating'.
 
yeah, it is just say there is a new struct type called 'tagPosition', but not creating an instances of it
 
@classdaknok_t this Sunday wokrs nicely
 
@sehe that's not the same thing. I asked WA if it's friday already, but WA didn't understand me.
It thought that I meant something else.
 
@thecoshman struct foo; is strictly a declaration while struct foo {}; is also a definition, is the important distinction.
 
@thecoshman Who would? You start with capitals. You can. However, you started using lowercase names for size and position so why do you ask about capitalization in the first place?
 
12:04 PM
@sehe did I? I tend not to worry too much about consistent details when typing into chat.
 
@classdaknok_t I think it understands humans, it just doesn't do boolean queries :)
6 mins ago, by thecoshman
also, how come you are using lower case for the typedef? should it not start with an upper case like you would with class names?
 
@thecoshman I'd expect you to treat responses in much the same way :)
@classdaknok_t TrueQ [ Today = Friday ] won't work because TrueQ needs a mathematical expression.
 
yay! so, ignoring my testing of it. Any suggestions on making this better?
 
is static_cast<unsigned>(-1) guaranteed to be the largest possible max value?
 
12:19 PM
IIRC yes, I remember Johannes once posted about this behavior.
 
@KonradRudolph why not just use ~0u?
Or numeric_limits, even better.
 
@classdaknok_t Because that’s not guaranteed to be portable.
 
50
Q: Is it safe to use -1 to set all bits to true?

hyperlogicI've seen this pattern used a lot in C & C++. unsigned int flags = -1; // all bits are true Is this a good portable way to accomplish this? Or is using 0xffffffff or ~0 better?

 
Already found it, [conv.integral], ¶2
 
std::numeric_limits<unsigned>::max() :)
 
12:22 PM
@classdaknok_t That's the RSI version :)
 
If you don't want RSI, don't use C++ and certainly not templates. :P
 
wouldn't i = i | !i do it?
 
@thecoshman that would make i = 1 almost always, AFAIK.
 
There's many ways to do it.
 
@classdaknok_t should set all bit's to 1, no?
 
12:24 PM
while (i != 0) ++i; --i;
 
@StackedCrooked no your jsut being silly
 
@thecoshman why? I don't get it.
! is logical negation.
 
oh, it's not a bit wise NOT is it
silly me
 
@thecoshman I believe that should be i = i | ~i;
 
@StackedCrooked But that is, as per litb’s post, not guaranteed to work
 
12:26 PM
I'd still use std::numeric_limits<unsigned>::max() as it's the most readable one; even a complete moron would understand it's the max value.
 
@KonradRudolph Yeah.
 
@classdaknok_t Oh, I agree with that. The question resulted from a pissing contest, that’s all
 
@classdaknok_t I think unsigned(-1) is pretty readable as well.
 
@StackedCrooked Ugh! C-style cast :(
 
@KonradRudolph no, construction.
 
12:27 PM
(actually, function-style but they are semantically identical)
@classdaknok_t fundamental types have no constructors
it’s merely constructor-like syntax
 
Ah k.
 
but in reality it’s an “everything goes” cast, and then some
 
Does anybody know how I can convert an std::chrono::duration<std::chrono::high_resolution_clock> to a floating point number in seconds? Should I use std::chrono::duration_cast?
 
ah, it's another one of those signed/unsigned gotchas :D
 
@KonradRudolph Function style cast on numeric types is the only place where I use C-style cast in code. I don't find it as problematic.
 
12:33 PM
@StackedCrooked I agree that it’s entirely unproblematic as long as the type identifier in front of the cast is really a built-in type
everything else – a typedef, say – could be redefined to potentially trigger any cast in the book
and even using an integer could cause a reinterpret_cast if the argument is a pointer
 
That's true.
 
1:03 PM
so erm... I have my two types. but now I want to be able to say pos += size see here I am fairly sure this is some sort of template specialisation, but I am rather poor at template code, as you have guessed :D
 
@thecoshman They don't have the same tag.
 
Argh, I can't click "back" without that damn Unity launcher popping up.
Time to see what's changed in KDE since 5 years ago.
 
@thecoshman Remove all usage of <Tag> inside the struct definition and make the operators templates
 
@KonradRudolph o_0
 
template <typename Other>
IntPair& operator+=(const IntPair<Other>& rhs){ x += rhs.x; y += rhs.y; return *this; }
 
1:06 PM
oh, so the individual functions are template, rather then the struct as a whole?
 
also, there’s no need to write struct TagPosi and struct TagSize.
need to be, yes. At the moment, they aren’t
by the way, ideone (still) sucks at login / account management
 
I never remember to login to ideone.
Their cookies expire way too fast.
 
@KonradRudolph yeah... I noticed
but now I am getting errors about the class not being a template class :(
ooh templates!
 
oooh, I see. yeah, I miss understood you and got read of the templating for the struct it self
so in theory, I can now say 'size = size' 'pos = pos' but not 'size = pos' which is good, because that does not make sense. Though, I can currently say 'size += pos' which again does not make sense, though I do want to be able to say 'pos += size'
Though I don't see why the return values for the functions are just 'IntPair' and not 'IntPair<Tag>'
 
1:15 PM
This user got it:
Weehoo. I like what you did to your accept rate :) — sehe 4 hours ago
 
@thecoshman Injected class name. Like the constructor is IntPair, not IntPair<Tag>.
 
@thecoshman Inside a class template X<T>, every mention of type X is in reality X<T>.
 
erm, so it is adding in the '<Tag>' bit for me?
 
1:28 PM
@thecoshman basically
 
Damn, I need to find time to install GCC & Boost on the cluster at work :/
the installed versions are unacceptably out of date
 
@KonradRudolph like... boost 1.32?
 
@sehe Actually 4.4.6 but I want C++11 ;)
 
@KonradRudolph ^ see edit ?
 
Boost 1.41
ok, question: should I install GCC 4.7 or 4.8/devel from SVN?
eh, I’ll better stick to 4.7
 
1:43 PM
ATM they're the same.
Unless doing bleeding-edge C++11.
 
… which would be the point ;)
 
1:53 PM
@KonradRudolph +1
@KonradRudolph install gcc 4.8 alongside... but don't mix-em up like on MacOS (that was you, no ?)
 
@sehe It wasn’t a mix-up, just misconfigured install prefix
 
ugh. same difference to me; 'it' got mixed up enough to break :)
I'd +1, but your rep is so nice, at 3,333 - I'll leave it for now :) — sehe 6 secs ago
 
I see KDE still tries hard to be Windows.
 
2:21 PM
Why are there emoticons in KDE configuration. o_o
 
mawnin
 
Hmm
I’ve got libgmp.* in in the path /usr/lib64 … do I need to specify --with-gmp-lib=/usr/lib64 when ./configureing GCC?
 
2:36 PM
Probably not.
 
Thanks, I’ll try it
 
why are some parts of ideone in spanish or something?
 
Spanish?
 
… or not
 
Rendering broke in Chrome.
I guess distro upgrade is not atomic.
 
2:47 PM
@abyx is this you?
 
@thecoshman yep, it's me
 
not a man to stick to one alias then :P
 
grr, looks like I need to install libgmp etc manually first :/
 
let say I have a class foo, and it wants to store a child of type bar. Can foo have a 'unique_ptr<bar>' and then a function to pass in a bar object for it to take ownership of, or do I have to create the bar object as I create the 'unique_ptr<bar>' ? IOW, how do I actually use unique_ptr :S
 
Xeo
lol
 
2:58 PM
:(
 
Xeo
up.reset(new bar()); or up.reset(bar_ptr); should do what you want
Resets the unique_ptr to hold a new object
 
up.reset(down);
 
Xeo
hrhr
 
Yay, more and more things start to break.
 
so something like void foo::setChild(bar& child){ child_up.reset(&child); child_up->setParent(this); }
 
Xeo
3:01 PM
&child
And it would be better to have a bar&& child passed in, so the caller has to do setChild(std::move(*bar_obj) to explicitly show the moving ownership
 
void foo::setChild(foo&& child){
  child_up.reset(child);
  child_up->setParent(this);
}
void foo::setParent(foo* parent){
  parentFoo = parent;
}
//used like
foo parent, child;
parent.setChild(std::move(*child));
 
Xeo
Ooh, no. nonono
If you have no pointer, don't use unique_ptr
 
Anyone knows how the 0xE8 (in x86_64) near relative call instruction works? Do I have to use a register from which it will jump relative or will it jump relative from my current instruction?
 
huh... so... for tree like structure I shouldn't use unique_ptr?
 
std::unique_ptr<foo> child; foo* parent;
But then don't make them automatic.
Or it'll blow up, obviously.
@ManofOneWay Read Intel manual?
 
3:17 PM
I have read it and according the manual there is no need for a register, just a displacement.
 
Then that's how it works.
 
I don't know if that's even the problem, I'm patching a call so at the code emit stage I'm sending in a 0 as displacement
I guess something else is wrong
 
@Xeo but I am fairly sure I want to be using pointers. If I was using raw pointers and not unique_ptr, I would be using pointers... if you follow
if I create my too foo classes via 'new' would that be the 'right' way to handle them?
 
Xeo
@thecoshman You can't have unique_ptr handle stack objects
I think your basic idea of how you want this to work is flawed
 
apparently so :P
Looks like I have some homework to do :D
any way, home time
see you!
 
3:35 PM
Hmm
I’m building GCC on 8 cores now but the machine has 24 cores … should I abort and use more?
 
Xeo
Me jelly.
 
lol, already done anyway
that’s scary!
no, that means there was an error :(
 
I think the update process died inside.
Great.
Wee, it woke up.
 
Xeo
0
Q: Why returning a pointer pointed to the local memory doesn't collapse?

Hailiang ZhangI thought the following call to f() will get a pointer to a local memory that will not be handled by the compiler (which is dangerous according to the textbook). However, it still works well. Not sure whether this is safe or not. #include <iostream> using namespace std; int * f() { in...

"Seems to work fine, what's wrong?" /sigh
 
fuck, fuck, fuck
 
3:53 PM
UB is evil and annoying
 
you guys can't deny that UB is confusing in the beginning
 
What's confusing about UB?
If you know what "undefined" means you should understand what UB means right away.
At least, I did.
 
@Xeo At least he's asking the question instead of just assuming that it's correct because it works. He's just learning from a text book right now.
 
@classdaknok_t that you even don't know what UB is
 
UB? Aren't computers deterministic machines?
Trolling :D
 

« first day (559 days earlier)      last day (4381 days later) »