Simple question,
just for fun.
I want to create a category or something similar, "sublassing" FOR loop, to make a FOREACH in obectivec, or to make a custom loop.
Ok, FOR loop is not a class and we cannot make a category or subclassing. We know.
I could use for (MyObj *obj in _MyArray ) { }, but i don’t want.
I want to do this:
foreach (MyObj *obj in _MyArray) { }
Or better a custom FOR loop, that make something different then classic FOR loop.
Note: not want a macro / define.
suggestions?
It’s possible to make something similar or not?
EDIT
Thanks to downvote, especially without comments!
If you don’t like this question or this question not have a response, ignore it, or better drop a comment!
1 Answer