386 reputation
38
bio website tommya.net
location Copenhagen, Denmark
age 32
visits member for 4 years, 1 month
seen 2 days ago

System consultant at Schilling A/S developing ERP solutions for the publishing industry.

Bitbucket profile: https://bitbucket.org/tommyandersen
GitHub profile: https://github.com/Barium


Sep
13
comment Undefined behavior, in principle
A different compiler, or the same compiler under different settings, different optimization levels, or perhaps even on a different system, might compile the code differently. You cannot know for certain what the results will be. As it is up to the inner "black magic" of the compiler, and it is possibly influenced by options and other outside parameters, making it possibly not reproducible, and even if it were, not advisable. If you want to learn about the stack there are better ways to do so, I would perhaps suggest looking at a valid codes assembly output.
Aug
29
awarded  Commentator
Aug
29
comment Uniqueness of for loop
@MichaelT that is true, in which case it works as an expression separator, rather than a parameter separator, as you write :)
Aug
29
revised Uniqueness of for loop
added 202 characters in body
Aug
29
answered Uniqueness of for loop
Aug
17
comment Is it an anti-pattern to use void* and enums to enable type-checking?
dynamic_cast might throw an exception if casting to a reference type, if casting to a pointer type it will instead return a null pointer of that type, if it fails. (CPP standard §5.2.7.9)
Aug
5
awarded  Enlightened
Aug
5
awarded  Nice Answer
Aug
4
comment Why is the JavaScript-language different in different programs/sites?
@Snowman JavaScript is superset of ECMAScript
Aug
4
comment Why is the JavaScript-language different in different programs/sites?
With programming once you learn one language, learning another becomes much more easy. It is often the concept of programming that one struggles to learn at first, once you got that right the syntax of the different languages, are easy to learn. In my opinion it doesn't matter which language you learn first.
Aug
4
awarded  Editor
Aug
4
revised Why is the JavaScript-language different in different programs/sites?
added 582 characters in body
Aug
4
answered Why is the JavaScript-language different in different programs/sites?
Aug
4
comment Why is the JavaScript-language different in different programs/sites?
Java and JavaScript is not the same thing.
Jul
12
comment Classic inheritance problem?
@Doval So whenever a new type is created, you would need to ad it to the enum, the union and the switch cases. Isn't this a problem that can be solved using inheritance, in a way that requires less coupling?
Jul
12
comment Classic inheritance problem?
@Doval Actually I find that a visitor pattern will give you far less coupling, than say an enum-like tag, which either require a cast, or union as in your case.
Jul
12
comment Classic inheritance problem?
@Doval I honestly do not think that a visitor pattern is a complicated way of solving problem like this.
Jul
12
awarded  Yearling
Jul
11
answered Classic inheritance problem?
Aug
1
comment IDE vs. Text Editor
@jozefg: "Don't get me wrong: Emacs is a great operating system – it lacks a good editor, though." - Thomer M. Gil :)