View previous topic :: View next topic |
Author |
Message |
simhau
Joined: 06 Feb 2007 Posts: 55
|
Posted: Sun Jan 13, 2008 1:57 pm Post subject: Properties |
|
|
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 |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Sun Jan 13, 2008 2:10 pm Post subject: |
|
|
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 |
|
|
|