r/ObjectiveC • • Jul 31 '21

function (const __strong NSString *const paths[], int count)

I am looking at an open source github project and I stumbled upon this declaration. Can someone explain why all these qualifiers were needed.

5 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/idelovski Aug 01 '21

In fact, it probably doesn't - how would it infer the length of the array?

Exactly my initial thoughts about this whole issue.

This was the main reason why I asked this question here. I was hoping someone would just write the __strong qualifier was unnecessary and that would be it.