Re: DCD v0.4.0

2014-11-16 Thread Kagamin via Digitalmars-d-announce
BTW, does DCD differentiate between function overloads? Semantic 
analysis would be needed to do it. How much of it DCD implements?


Re: D/Objective-C 64bit

2014-11-16 Thread Christian Schneider via Digitalmars-d-announce

I am just stumbling over adding class objects to an array:

I get an error when trying to add class objects to an NSArray 
because e.g. NSString.class does not conform to ObjcObject. There 
is some functions in the API that require arrays of class 
objects, e.g. in NSPasteboard:


NSPasteboard pb = NSPasteboard.generalPasteboard() ;
NSArray classes = NSArray.arrayWithObjects(NSString.class, 
NSAttributedString.class, null) ;
NSString pbItem = cast(NSString) 
pb.readObjectsForClasses_options(classes, null).lastObject() ;


Sure, there are other functions in NSPasteboard, and 
readObjectsForClasses_options is not the only way to get the 
pasteboard items, but a great convenience in given settings.


Re: DCD v0.4.0

2014-11-16 Thread Brian Schott via Digitalmars-d-announce

On Sunday, 16 November 2014 at 10:32:12 UTC, Kagamin wrote:
BTW, does DCD differentiate between function overloads? 
Semantic analysis would be needed to do it. How much of it DCD 
implements?


It gives a list of all the overloads when providing call tips. 
Figuring out which version of foo in foo().| isn't necessary 
because they all have the same return type. (| is the cursor 
position)