I\'m putting together a list of interview questions for someone interviewing to be a Cocoa developer. I\'m a programmer, but I\'ve never done Objective-C. I stumbled upon an interesting question that
I have the code below. I get an object whose type I don\'t know. I have to check three if conditions to check its type, then make the right cast.
So, I\'ve read a bunch of similar questions on Stack Overflow regarding this issue, and I think I have a good grasp of what the differences between the two are.My question is whether there is any adva
In Objective-C, I could do: id<HTTPRequestDelegate> delegate; to say that delegate (a variable of type id) conforms to the HTTPRe开发者_C百科questDelegate protocol (or implements the HTTPRequ
Why isn\'t the following working? (Yes, I am working with 2.9.0final and turned the \"-Xexperimental\" option on.)
My current understanding of dynamically generated types is this: If you generate a type via CodeDom and load it into an AppDomain, ther开发者_如何转开发e is no way to unload that type (i.e. Assembly.
I want to write a function with this type signature: getTypeRep :: Typeable a => t a -> TypeRep where the TypeRep will be the type representation for a, not fo开发者_JAVA百科r t a. That is, t
Suppose, for example, we have the following data structure: data Foo = Bool Bool | Int Int | Double Double
I am running into a problem when trying to implicitly convert one of my dynamic types. There are two assemblies with definitions similar to the following:
I\'ve been reading up a lot on Dependency Injection, Inversion of Control, and IoC containers.I al开发者_StackOverflow社区so primarily program in dynamic languages (PHP at work, Python at home).Here a