This shows you the differences between two versions of the page.
|
dss:laboratoare:03 [2019/06/20 15:37] razvan.nitu1305 |
dss:laboratoare:03 [2019/06/21 13:10] (current) razvan.nitu1305 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Lab03: Memory Safety ===== | + | ===== Lab 03: Memory Safety ===== |
| During this lab you will learn about the memory safety mechanisms that are available in D. | During this lab you will learn about the memory safety mechanisms that are available in D. | ||
| Line 207: | Line 207: | ||
| ===== Exercises ===== | ===== Exercises ===== | ||
| + | |||
| + | The exercises for ''lab-03'' are located in this [[https://github.com/RazvanN7/D-Summer-School/tree/master/lab-03|repo]]. | ||
| ==== 1. Qualifiers ==== | ==== 1. Qualifiers ==== | ||
| Line 262: | Line 264: | ||
| Navigate to the ''7-template-inference'' directory. Inspect the source file. Compile and run the code. | Navigate to the ''7-template-inference'' directory. Inspect the source file. Compile and run the code. | ||
| - | - Add the @safe attribute to the main function. How do you explain the result? Why isn't the compiler complaining for the second invocation of func? | + | - Add the **@safe** attribute to the **main** function. How do you explain the result? Why isn't the compiler complaining for the second invocation of func? |