Questions
- What are the main differences between checking the types of array accesses and checking the types of struct or class member accesses?
- How do a function’s
return
statements know what type they are returning? They are often quite far away in the tree from the location where the function’s return type is declared. - How are types checked during a function call? How does this compare with type checking operators such as plus and minus?
- Besides accesses via the
[ ]
and.
operators, what other forms of type checking are necessary for arrays, structures, or class types?
Join our community on Discord
Join our community’s Discord space for discussions with the authors and other readers: