www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - question -property

.property = "test";

.method = "test";
.method("test");

What does -property exactly do?

If you had like a dynamic where you don't know if it's
member is a property or a method. You would choose
method right?


scratch the invalid ones below.
-------------------------------

.property="test";
.property("test");
.method="test";
.method("test");
Jan 04 2012