func someMethod() {
var variable = "someString"
}
'who' has the referentce to the variable?
func someMethod() {
var variable = "someString"
}
'who' has the referentce to the variable?
The function. Who else could have it?
who has the reference to the function,how can I check for it?
By 'who has the reference', do you mean who own's the function or who is the caller of the function?
Is function and its owner's relationship a reference?
Functions are reference types like classes are also reference types in Swift, if that's what you've asked about.
yes:joy:
is it right?