When using manual memory management we can write a call to a method which is not declared in the class. What we get during compilation in this case is warning only. This is what Wikipedia states on one of the most distinctive Objective-C features:
The Objective-C model of object-oriented programming is based on message passing to object instances. In Objective-C one does not simply call a method; one sends a message. This is unlike the Simula-style programming model used by C++. The difference between these two concepts is in how the code referenced by the method or message name is executed. In a Simula-style language, the method name is in most cases bound to a section of code in the target class by the compiler. In Smalltalk and Objective-C, the target of a message is resolved at runtime, with the receiving object itself interpreting the message
So why it is compilation error in ARC? What are the reasons to break such a powerful feature of the language? What's so important about that i'm not aware of? Can anybody explain this? Thanks
ARC manages retain/release calls. To do so properly it needs to know how all methods you use behave.
It needs the message signatures you use. it gets them from header files. Therefore it enforces you to have headers/declarations for all methods you use.
It DOES work without headers: you can trick it by using NSSelectorFromString but that isn't really safe and arc wants to be sure about everything by default.
There is some information about it in this discussion:
And this response seems to be from one of the Apple developers:
So the main argument is that the compiler needs to know the ownership of the return value.