-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling a +method using [self class] is clumsy #9
Comments
To clarify: - (void) clone
{
id clone;
clone = [[self class] new];
} is lame when you could write - (void) clone
{
id clone;
clone = [isa new];
} The problem is that |
Why not call it instancetype instead of isa? More ObjC are familiar with instancetype keyword and I think it makes sense to use it in this context. I would like to investigate this and see if I can figure it out. |
|
I reviewed this repository and I am not sure where do I need to make the change to add isa as a keyword. Is the source code in this repository or another repository? |
The general idea of the library structure is, that MulleObjC is based on mulle-objc-runtime, and does the runtime specific stuff (i.e. mulle-objc-compat is a layer on top of mulle-objc-runtime, to emulate and translate Apple runtime functions like Finally objc-compat contains various "stuff" to write compatible code, where the Apple Foundation and the MulleFoundation differ. So its debatable if Anway...I probably should close this issue, since I have added a The 0.15 release will be a fairly big step towards compatibility of MulleFoundation with the Apple Foundation, albeit it's not in a release-worthy state just now unfortunately. |
You used to be able to call
isa
and maybe this should become a keyword just likeself
(again).The text was updated successfully, but these errors were encountered: