This shows you the differences between two versions of the page.
dss:laboratoare:03 [2019/06/20 15:40] razvan.nitu1305 [2. Qualified functions] |
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 220: | Line 222: | ||
void foo() immutable | void foo() immutable | ||
</code> | </code> | ||
- | * What happens? How can this code be fixed? Ask the [[http://ocw.cs.pub.ro/courses/dss?&#team|lab rats]] for guidance on [[https://dlang.org/spec/template.html#template_this_parameter | template this params]]. | + | * What happens? How can this code be fixed? Ask the [[http://ocw.cs.pub.ro/courses/dss?&#team|lab rats]] for guidance. |
==== 3. Const ==== | ==== 3. Const ==== |