I've seen almost everyone here talk about
references instead of pointers (as I understand it).
Anyone knows a good tutorial och can explain
the concept of references?
You can think of a reference as a pointer that cannot change where it is
pointing, but is used syntactically as if it were just a value.
Things to note:
1) Since passing by reference actually passes a pointer, any
modifications done in the function will affect the original value.
2) For large structs, passing by reference prevents you from having to
copy the data structure when passed.
3) If you don't need to do pointer fiddling, the syntax of references is
much easier than that of pointers.
Basically, a reference is a pointer with all of the "pointer-y" stuff
hidden from you.
Jon
----
Learn to program using Linux assembly language
http://www.cafeshops.com/bartlettpublish.8640017