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

Const Member Functions

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



Joined: 23 Mar 2008
Posts: 4

PostPosted: Sun Mar 23, 2008 2:50 pm    Post subject: Const Member Functions Reply with quote

Hi,
I'm trying some D2.0 code and I get a wrong error message from Descent (I have set the compiler settings to 2.0):

Quote:
Functions cannot be const or auto


When using this code:

Code:

class A
{
   string a;
   const  string getA() { return a; }
}


But the code compiles without errors.
Back to top
View user's profile Send private message
Mahe



Joined: 23 Mar 2008
Posts: 4

PostPosted: Mon Mar 24, 2008 10:29 am    Post subject: Reply with quote

Also property "idup" of char[] is marked as error
Code:
 "some text".idup
Back to top
View user's profile Send private message
asterite



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

PostPosted: Tue Mar 25, 2008 7:29 am    Post subject: Reply with quote

D 2.x is currently not supported in Descent.
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