On 2014-11-18 09:46, Christian Schneider wrote:

Compiling using dmd...
source/document.d(79): Error: function
foundation.array.NSArray.arrayWithObjects (ObjcObject object, ...) is
not callable using argument types (Class, Class, typeof(null))

compile time.

hmm, a class object is of course not an ObjcObject, how could it be. I
think here is a limit to what is possible, this is the darn id of
Objective-C that makes all this funky convenience possible. Actually,
it's not a big deal, there is other methods to get what you want and the
above mentioned function in question is by itself just a convenience.

Hmm, I don't know. Can you use a cast to get around the problem? Perhaps use a variadic template to make the API simpler.

/Jacob Carlborg

Reply via email to