On 29/06/2010 00:07, Simen kjaeraas wrote:
Maybe it's because you haven't added string to the setter? Just grasping
at straws here.
--
Simen
Hi Simen, yes, thats the prob. I just have not found the @property
docs.. thanks for all the help..
This snippet works now as expected.. D properties a
BLS wrote:
Hm, this snippet does not compile :
class Server {
private string _name, _id;
@property servername(string name) {
_name = name;
}
@property string servername() {
return _name;
}
}
remove string from @property
On 28/06/2010 23:00, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/function.html#property-functions
-Steve
Makes sense :) thanks
On 28/06/2010 22:58, Steven Schveighoffer wrote:
I wasn't aware that @property implies auto. I guess that makes sense,
but I didn't consider it anything but a hint to the compiler about how
it could be called, not that did anything with the type.
Hm, this snippet does not compile :
class Serv
On 06/28/2010 03:58 PM, Steven Schveighoffer wrote:
On Mon, 28 Jun 2010 16:55:01 -0400, Ellery Newcomer
wrote:
On 06/28/2010 03:47 PM, Steven Schveighoffer wrote:
On Mon, 28 Jun 2010 16:37:06 -0400, BLS wrote:
@property nextServer() {
Shouldn't this be
@property Server nextServer() {
?
On Mon, 28 Jun 2010 16:55:44 -0400, Rory McGuire
wrote:
On Mon, 28 Jun 2010 22:37:06 +0200, BLS wrote:
beside, where are the @property docs ?
Only place I've seen @property docs is in TDPL
http://www.digitalmars.com/d/2.0/function.html#property-functions
-Steve
On 28/06/2010 22:47, Steven Schveighoffer wrote:
houldn't this be
@property Server nextServer() {
Ouch, you are right.. Interesting enough that @property nextServer() {
return ...} compiles without giving any error message..
Anyway it seems to be a forward reference bug. moving the inner Se
On 06/28/2010 03:47 PM, Steven Schveighoffer wrote:
On Mon, 28 Jun 2010 16:37:06 -0400, BLS wrote:
@property nextServer() {
Shouldn't this be
@property Server nextServer() {
???
auto functions?
On Mon, 28 Jun 2010 16:55:01 -0400, Ellery Newcomer
wrote:
On 06/28/2010 03:47 PM, Steven Schveighoffer wrote:
On Mon, 28 Jun 2010 16:37:06 -0400, BLS wrote:
@property nextServer() {
Shouldn't this be
@property Server nextServer() {
???
auto functions?
I wasn't aware that @proper
On Mon, 28 Jun 2010 22:37:06 +0200, BLS wrote:
Hi I have a forward reference pb in conjunction with @property.
Err msg is :
forward refrence to inferred return type of function call s1.servername.
any ideas ? beside, where are the @property docs ?
thanks, bjoern
final class LoadBalancer {
On Mon, 28 Jun 2010 16:37:06 -0400, BLS wrote:
Hi I have a forward reference pb in conjunction with @property.
Err msg is :
forward refrence to inferred return type of function call s1.servername.
any ideas ? beside, where are the @property docs ?
thanks, bjoern
final class LoadBalancer {
BLS wrote:
Hi I have a forward reference pb in conjunction with @property.
Err msg is :
forward refrence to inferred return type of function call s1.servername.
any ideas ?
No line number? If so, file it in bugzilla. You might also want to file
a bug for the forward reference problems.
b
Hi I have a forward reference pb in conjunction with @property.
Err msg is :
forward refrence to inferred return type of function call s1.servername.
any ideas ? beside, where are the @property docs ?
thanks, bjoern
final class LoadBalancer {
private static LoadBalancer lb;
privat
13 matches
Mail list logo