Clang can convert +alloc and +allocWithZone: with a nil argument calls into calls to a runtime function. This is not quite the same as class_createInstance, because it guarantees that the +initialize method has been sent and will call +alloc if the class provides an override (the overwhelming majority do not).
Clang can convert
+alloc
and+allocWithZone:
with anil
argument calls into calls to a runtime function. This is not quite the same asclass_createInstance
, because it guarantees that the+initialize
method has been sent and will call+alloc
if the class provides an override (the overwhelming majority do not).