22,724 reputation
43193
bio website
location
age
visits member for 3 years, 4 months
seen 18 hours ago

Author of C++ tutorials and Wide language.

Foo


18h
comment How to manage memory in C interface for C++ implementation considering c++11?
Why aren't unique or shared pointers suitable here? Unique and shared pointer between them should cover virtually every need you have, except when it comes to actually defining the C-compatible functions in which case owning raw pointers is necessary.
1d
comment Saving an array to a binary file in C?
Not sure I'd argue that, it would be closed pretty fast due to the problems Avner points out.
Mar
27
comment Why is it bad to write something in language X as if you're writing a program in language Y in terms of using a shared coding paradigm
Both C++ and C# have optional<T> and Nullable<T> respectively. Also, practically everybody leaks memory in C++ without RAII, noob or not.
Mar
19
awarded  Notable Question
Mar
10
comment Disadvantages of scoped-based memory management
using is a joke compared to RAII, just so you know.
Mar
2
awarded  Nice Answer
Jan
8
awarded  Nice Answer
Dec
31
awarded  Nice Question
Dec
24
awarded  Nice Answer
Nov
25
awarded  Yearling
Nov
7
awarded  Enlightened
Nov
7
awarded  Nice Answer
Oct
19
awarded  Nice Answer
Oct
10
awarded  Populist
Sep
6
awarded  Enlightened
Sep
6
awarded  Nice Answer
Aug
13
awarded  Nice Answer
Aug
12
comment Interviewer gives wrong answers to their own questions
I'm not really sure this is a question on second thought.
Aug
12
comment Interviewer gives wrong answers to their own questions
Your examples are C++ but the core question is not.
Aug
12
revised Interviewer gives wrong answers to their own questions
edited tags