Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

idea: Abstract class and methods #75

Open
Mazyod opened this issue Jul 23, 2014 · 2 comments
Open

idea: Abstract class and methods #75

Mazyod opened this issue Jul 23, 2014 · 2 comments

Comments

@Mazyod
Copy link

Mazyod commented Jul 23, 2014

In order to mark a class as abstract, I have to add the unavailable attribute to the +[Class alloc] and +[Class new] methods. I wonder if there is a better, faster way to achieve this with libextobjc?

As for methods, I simply add an exception or assertion.

@jspahrsummers
Copy link
Owner

Hmm, this is pretty tricky to do, especially if the class needs to define abstract constructors as well.

I'm mostly focused on Swift these days, so I doubt I'll get to this, but I'll leave it open for posterity. 😄

@fpg1503
Copy link

fpg1503 commented Oct 22, 2015

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants