Skip to main content

Chapter 10 References and Exceptions

We have already leaned about the standard way in which functions communicate - via parameters and return values. In this chapter, we examine alternative ways to pass parameters and a special way for functions to return an error message to their callers.

Note 10.0.1.

The two topics are not necessarily connected and coverage of them can be broken up. However, the presentation here assumes you have already seen strings. Future chapters will assume understanding of references. Exceptions will appear less frequently and most samples will make sense even without the details from this chapter.