3,498 reputation
11019
bio website
location Italy
age 50
visits member for 3 years, 3 months
seen 5 hours ago

Born an living in the suburbs of Milan (Italy), I graduated in 1989 as a Master Electronic Engineer, specializing in information technology an inter-networking systems and plants.

Interested in programming since the early '80s, today working mainly in C++ and D programming languages, in libraries development.


Oct
19
comment What is the name of a type that is defined from a template?
Note that vector<T> a; is not the declaration of 'a' of type vector<T>: is just a syntax error.
Oct
19
comment What is the name of a type that is defined from a template?
No. vector<T> is a "geberic type" because T is a formal parameter (and not an existing type). The declaration is template<class T> class vector { ... };. vector<int> a is the declaration of the variable a of type vector<int>; vector<bool> b is the declaration of the variable b of type vector<bool>; The fact the actual code of vector<int> and vector<bool> is different depends on the fact there is a template<> class vector<bool>{...}; somewhere in the <vector> header, not on the fact the vector<bool> is used here or there to instantiate this or that variable.
Oct
19
revised What is the name of a type that is defined from a template?
added 194 characters in body
Oct
19
answered What is the name of a type that is defined from a template?
Oct
9
answered Can I watch a SHA-256 do its magic visually?
Oct
2
revised Why are shortcuts like x += y considered good practice?
added 2768 characters in body
Oct
2
revised Why are shortcuts like x += y considered good practice?
added 81 characters in body
Sep
24
awarded  Autobiographer
Sep
17
comment Is it an overkill to wrap a collection in a simple class only for the sake of better readability?
@Doc Brown, Aviv Cohn: There is no tag specifying any language, so anything can be right and wrong at the same time!
Sep
15
revised c++ coding practice class vs. “free” functions
deleted 5 characters in body
Sep
14
answered c++ coding practice class vs. “free” functions
Sep
2
awarded  Yearling
Aug
17
revised Is goto to improve DRY-ness OK?
added 41 characters in body
Aug
17
revised Is goto to improve DRY-ness OK?
added 41 characters in body
Aug
17
answered Is goto to improve DRY-ness OK?
Aug
16
comment Why are packed structures not part of the C language?
??? You answered to the question "Why is not in the standard language" by saying "because is not in the standard"...
Aug
16
answered What's a “Polymorphic method”?
Aug
16
comment What's a “Polymorphic method”?
It can actually be both things depending on the language, feature and technology used. Runtime polymorphism is based on virtual methods, static polymorphism (like CRTP) is based on template parameters and template functions (something yo ueven don't mention). Some languages distinguish classes and interface, some other don't (and admit abstract mthods to be intermixed with implemented ones) ...
Aug
15
answered Code re-use in C++, via multiple inheritance or composition? Or…?
Aug
15
answered Should we only catch in exceptional circumstances?