Skip to main content
5 events
when toggle format what by license comment
Dec 30, 2011 at 10:08 history edited Jon Purdy CC BY-SA 3.0
edited body
Dec 27, 2011 at 13:21 vote accept Chris
Dec 25, 2011 at 5:29 comment added Jon Purdy @Steve314: I guess that’s a point to clarify. I meant of course that the “purpose” (function) of references in C++ is to alias, but to what “purpose” (end) you apply that feature naturally varies.
Dec 25, 2011 at 5:05 comment added user8709 Slight concern about "one purpose". A common use is by-reference parameters. They are aliases, but that isn't really how people think of them - or at least not how I think of them anyway. Pass-by-reference is a purpose in itself, and using an "alias type" is in that case just the means. In some languages (e.g. Pascal family), there are no C++-style reference types but pass-by-reference parameters are still supported.
Dec 25, 2011 at 3:32 history answered Jon Purdy CC BY-SA 3.0