ER: warning when calling a method with dot syntax
| Originator: | Raubtiger | ||
| Number: | rdar://13618591 | Date Originated: | 10-Apr-2013 01:25 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.6.1 (4H512) |
| Classification: | Enhancement | Reproducible: | Always |
Summary: The dot syntax was introduced to use with @property declarations. It can also be used on methods without call parameters. Those methods usually have a side effect because you don't need a full-blown method when no side-effect is required. Thus the compiler should warn if you use a full-blown method with dot syntax b/c that's probably not what you want. Optionally this could be a part of the static analyzer. (Extra-bonus: the analyzer could look for said side-effect).
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!