libextobjc icon indicating copy to clipboard operation
libextobjc copied to clipboard

idea: Abstract class and methods

Open Mazyod opened this issue 11 years ago • 2 comments

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.

Mazyod avatar Jul 23 '14 08:07 Mazyod

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. :smile:

jspahrsummers avatar Jul 25 '14 17:07 jspahrsummers

+1

fpg1503 avatar Oct 22 '15 14:10 fpg1503