D/Objective-C 64bit
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue Nov 18 05:54:28 PST 2014
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
More information about the Digitalmars-d-announce
mailing list