Search⌘ K
AI Features

Function Parameters

Explore how function parameters operate in D by understanding that arguments are passed as copies, not references. This lesson helps you grasp the effects of modifying parameters within functions and prepares you to learn referencing in upcoming lessons.

Function parameters

Some of the concepts of this chapter have already appeared earlier in the course. For example, the ref keyword that we saw in the foreach loop lesson was making actual elements available in foreach loops as opposed to copies of ...