Make dur a property?
Johannes Pfau
nospam at example.com
Thu Jan 24 07:45:43 PST 2013
Am Thu, 24 Jan 2013 09:20:44 +0100
schrieb Jacob Carlborg <doob at me.com>:
> On 2013-01-24 03:02, Nick Sabalausky wrote:
>
> > foo.bar() // Perform action
> > foo.bar // Access data
>
> Who says it has to be like this.
>
.NET guidelines since .NET 1.1 for example:
"In general, methods represent actions and properties represent data."
(http://msdn.microsoft.com/en-us/library/bzwdh01d%28v=vs.71%29.aspx).
More information about the Digitalmars-d
mailing list