FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Not all erros show up

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Tue Jul 22, 2008 10:14 am    Post subject: Not all erros show up Reply with quote

I'm not sure if this is a bug or if descent isn't "good enough" yet but often descent doesn't show all the errors it should show. Example, I'm porting a Java project to D and almost the only error descent shows is that name of the constructor is wrong:

module dwt.internal.cocoa.NSEnumerator;

import dwt.dwthelper.utils;

public class NSEnumerator : NSObject {

public NSEnumerator() {
super();
}

public NSEnumerator(objc.id id) {
super(id);
}

public NSArray allObjects() {
objc.id result = OS.objc_msgSend(this.id, OS.sel_allObjects);
return result !is null ? new NSArray(result) : null;
}

public id nextObject() {
objc.id result = OS.objc_msgSend(this.id, OS.sel_nextObject);
return result !is null ? new id(result) : null;
}

}

The text that is bold is where descent shows me errors. If I change the constructor to the proper name "this" than descent doesn't show me any errors at all even thought it should. Descent should show that it can't find the types "OS", "NSObject" and "NSArray" and that it's something wrong with "objc.id" because I haven't imported them yet.
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Tue Jul 22, 2008 12:11 pm    Post subject: Reply with quote

I'll disable the "show semantic errors" feature because until now I didn't succeeded to get this OK without sacrificing performance. It's really an experimental feature, sorry. Sad
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group