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

Properties

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Sun Jan 13, 2008 1:57 pm    Post subject: Properties Reply with quote

From the bind documentation I understood that you should be able to use properties just like in D, but it doesn't work for me.
I need to use them as functions for MiniD to get it right.

Otherwise I get errors like "No implementation of method x for type 'function'"
Back to top
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sun Jan 13, 2008 2:10 pm    Post subject: Reply with quote

Quote:
From the bind documentation I understood that you should be able to use properties just like in D, but it doesn't work for me.
I need to use them as functions for MiniD to get it right.


I suppose the documentation is a little unclear there. By "compatible" it means "you use the same name to get and set; the version that takes a parameter is the setter and the version that takes no params is the getter." Yes, you have to call them as functions in MiniD, as "MiniD doesn't have explicit support for properties".
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD 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