Make dur a property?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Wed Jan 23 18:02:05 PST 2013


On Thu, 24 Jan 2013 00:30:43 +0100
Timon Gehr <timon.gehr at gmx.ch> wrote:

> On 01/23/2013 11:40 PM, Nick Sabalausky wrote:
> > On Wed, 23 Jan 2013 15:14:21 -0500
> > Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> >
> >> On 1/23/13 1:48 PM, Nick Sabalausky wrote:
> >>> Having the *caller* decide whether something is a property or not
> >>> makes as much sense as having the caller decide the function's
> >>> name, signature and semantics.
> >>
> >> No. The caller does get to decide a variety of syntactic aspects of
> >> the invocation.
> >>
> >
> > Yes, but it's unfortunate that includes a part of the syntax that
> > carries semantic/conceptual implications for something (action or
> > data) that is already *inherently* determined by writer of the
> > *callee*.
> >
> 
> Keeping or leaving out the parens has no semantic implications.
> 

foo.bar() // Perform action
foo.bar   // Access data



More information about the Digitalmars-d mailing list