[Issue 606] auto x = property: variable x cannot be declared to be a function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 30 00:10:38 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=606
wbaxter at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Comment #2 from wbaxter at gmail.com 2006-11-30 02:10 -------
(In reply to comment #1)
> That's as designed. Declaring a variable to be a function makes no sense. You
> can declare it to be a pointer to a function, though. You can also declare it
> to be an alias of a function.
>
I think the point of the bug is that because it's invalid to set a variable to
a function, this should be interpreted as a function call, and thus make x an
int with value 0.
--
More information about the Digitalmars-d-bugs
mailing list