Adds initial draft for translation-units topic#79
Adds initial draft for translation-units topic#79rwdougla wants to merge 4 commits intocplusplus:masterfrom
Conversation
|
@vulder I looked at it and I think it ready for a review. |
vulder
left a comment
There was a problem hiding this comment.
LGTM for the first draft, if we could clean up the few remarks below, we could vote on this in the next SG20 meeting.
| _TODO: | ||
| _introduce notion of object file |
There was a problem hiding this comment.
It seems from the TODO that the notion of a object files is still missing here.
|
|
||
| #### Caveats | ||
|
|
||
| #### Points to cover |
There was a problem hiding this comment.
Currently, this topic is missing points to cover.
| ------------------------------------------------------------------------ | ||
| Level Objective | ||
| ----------------- ------------------------------------------------------ | ||
| Foundational |
There was a problem hiding this comment.
| Foundational | |
| Foundational Building code from multiple files |
|
|
||
| A student: | ||
|
|
||
| 1. Is able to define a variable, function, or class |
There was a problem hiding this comment.
| 1. Is able to define a variable, function, or class | |
| 1. Is able to define a variable, function, and class |
Maybe this should be an and, or would seeing one of those be enough?
| 2. Is able to access declarations from either module import or header inclusion | ||
|
|
||
| Questions: | ||
| modules and/or functions? |
There was a problem hiding this comment.
This looks a bit like a note that should be worked out?
|
|
||
| _This section lists important details for each point._ | ||
|
|
||
| Declarations and definitions can be within same file |
There was a problem hiding this comment.
| Declarations and definitions can be within same file | |
| * declarations and definitions can be within same file |
| _This section lists important details for each point._ | ||
|
|
||
| Declarations and definitions can be within same file | ||
|
|
There was a problem hiding this comment.
The points to cover seem to be missing important parts that should be covered, at least when waht I would infer from the ASSBATs section.
| 3. | ||
| 4. | ||
| 5. |
| A student should be able to: | ||
|
|
||
| 1. explain how an anonymous namespace functions within their translation unit | ||
| 2. One-definition-rule shennanigans |
There was a problem hiding this comment.
The intricacies might be advanced but do you not think that at least teaching the the one-definition-rule would not make sense at least on a "main" level?
Issue #5