Lstor

Norway

lstor.me

I work as a software development consultant.

Jul
21
comment Clojure - named arguments
clojure-contrib is deprecated, and I couldn't find a current alternative. Any ideas?
Jul
18
comment Is it okay to ask which snippet is considered the most clean?
Hey @Jamal :) What exactly do you mean by 'still involves review'?
Jun
26
awarded Popular Question
Jun
12
revised Recursion Help Please
Removed self-made syntax highlighting, grammar and formatting cleanup, introduced proper syntax.
Jun
12
comment return dynamical array in C++
I strongly recommend using more distinct variable names. xar and xarr are begging to be confused with eachother. The same with xar and yar. At least write x_array and y_array instead, to make it visually easier to see the difference. xarr could be renamed to result or something that makes sense in the domain.
Jun
12
comment How add a square bracket to end of line in file using VIM
Yeah, substitution is fastest to type, fastest to run and most precise.
Jun
12
comment Does c++11 have something like quint8?
@FinalContest: I respectfully disagree, and read the quint*8*-part as an example rather than the complete list of what he needs. Besides, listing all types is more useful for future googlers. Since OP explicitly asks if C++11 adds support for such types, I presume that he is aware of the limitation and has support for C++11.
Jun
12
awarded Nice Answer
Jun
11
comment Why does C++ inline function has call instructions?
You forgot the most important point, namely that the compiler is free to ignore any and all inline hints if it wants to.
Jun
11
comment Does c++11 have something like quint8?
@ColeJohnson: You are guaranteed to have a typename in <cstdint> with each of those names. I'm not saying that they are separate types, just that they are present and can be used. I don't think it's relevant whether it's a separate type or a typedef, but maybe I'm missing your point?
Jun
11
comment Does c++11 have something like quint8?
@ColeJohnson: That is correct, but do you think that matters for OP?
Jun
11
revised Does c++11 have something like quint8?
added 8 characters in body
Jun
11
revised C++ local scopes to reduce memory?
added 1 character in body
Jun
11
comment C++ local scopes to reduce memory?
@Deduplicator: Yeah, I just realized that my wording was clumsy, and updated it. Thanks.
Jun
11
comment C++ local scopes to reduce memory?
@DieterLücking: I doubt it, since the standard only talks about automatic storage duration. However, you are guaranteed that destructors will be called, for example.
Jun
11
revised C++ local scopes to reduce memory?
added 284 characters in body
Jun
11
comment C++ local scopes to reduce memory?
@MooingDuck: You're right, old (and bad) habit. I changed it. Thanks!
Jun
11
answered C++ local scopes to reduce memory?
Jun
11
comment Does c++11 have something like quint8?
@camino: "At least as fast as any other integer type with at least the specified width."
Jun
11
revised Does c++11 have something like quint8?
added 78 characters in body
1 2 3 4 5