3

Take the following code…

func f(p: Any) {
}

Can we know at runtime whether p is a reference or a value?

Now, to head off at the pass those who will ask, "Why, young Padawan, do you want to know this?" Well, it is a part of my further investigations into the Swift language.

Gregory Higley
  • 15,923
  • 9
  • 67
  • 96

0 Answers0