
Daniel is a system programmer & web developer with 10 years of experience...
system programmer & web developer
coder . cl
a journey in software development...
c++ type casting operators
by Daniel Molina Wegener on 25-07-2010Traditionally, C programmers and Java programmers are accustomed to use the type casting form: (type)variable. C++, instead of that classical type casting form, has various type casting operators, used for different purposes. Each operator is used with different kinds of references, for example, you can not use the static_cast operator with virtual classes. Type casting operators in C++ has a syntax very similar to C++ Templates: cast_operator<type>(variable).
c++0x, deprecation of exported templates
by Daniel Molina Wegener on 24-10-2009C++0x, the incoming C++ standard, is subject of continuous changes. Few months ago C++0x Concepts were removed from the working draft. Now, Template Exports will be deprecated from the future standard. What does it means?. "A template defines a family of classes, functions, or concept maps, or an alias for a family of types". Who has worked with C++ templates, knows that they are the most powerful approach to abstraction. Also they are pretty similar to the Java Generics, but different enough to hold more complex classes and methods, such as working with operators.
some C++0x functional programming features
by Daniel Molina Wegener on 02-09-2009
I know a little about functional programming. Certainly, It have interesting features, such as Lambda Expressions and Closures. It seems that C++0x, the new C++ standard will support both of them. Closures, known as nested functions and Lambda Expressions, known as anonymous functions are neat tools on developing fast code with small pieces of them. Lambda expressions can be used as arguments. They allow certain kind of abstractions, allowing the implementation of computational structures like Monads and Monoids.
interpreting valgrind messages
by Daniel Molina Wegener on 15-08-2009
In other posts I’ve presented you some ways to detect memory leaks, conceptually rather than practically, but enough to understand them and solve those programming issues. Normally, valgrind messages. There are some posts about valgrind and well documented user guides, such as the guide written by Alex Ott. This article is about on how to interpret valgrind messages while you are using it as memory allocation debugger.

