SwiftSAP
Protecting the original
You passed a class instance to a function, changed a property inside it, and the caller's original changed too. How do you protect the original?
Protecting the original
You passed a class instance to a function, changed a property inside it, and the caller's original changed too. How do you protect the original?
Memory and ARCShort answerBasics
In struct Order { var items: [Item]; let customer: Customer }, Item is a struct and Custo…
#deep-copy #shallow-copy #nscopying
SwiftMultiple choiceIntro
What does this code print? …
#value-semantics
SwiftShort answerBasics
Which line in this code fails to compile, and why? …
#value-semantics
SwiftShort answerExpert
You need a struct ImageBuffer that wraps a large pixel buffer, keeps value semantics, and…
#value-semantics