On Tue, 02 Nov 2010 18:02:04 -0400, Jesse Phillips
<[email protected]> wrote:
Steven Schveighoffer Wrote:
It does not say that functions should be callable without parentheses,
because that mis-feature is deprecated. Essentially, to someone who is
new to D, there is no need to mention the historical features of D. It
does say that you need to put @property on functions to make them into
properties. At least the copy I reviewed said that (I don't have a
final
copy).
-Steve
I think part of my distrust is I recall getting an error message to the
effect of:
Error: cannot call property function using ()
But I'm not getting any such error now, so I don't know what I was
fixing.
IIRC, the compiler has some enforcement but not complete enforcement.
I would not trust the compiler. The intent is for omission of parentheses
to be required for, and valid only for @property functions.
-Steve