Stack overflow error
Lionello Lunesu
lionello at lunesu.remove.com
Sun Jan 21 11:53:42 PST 2007
"Andrey Khropov" <andkhropov_nosp at m_mtu-net.ru> wrote in message
news:ep01si$o08$1 at digitaldaemon.com...
> Bill Baxter wrote:
>
>
>> Oh, you do realize D treats 'blah' as a synonym for 'blah()' if blah is
>> a
>> function or delegate, right?
>
> I think it's a harmful and error-prone feature. And it's also
> inconsistent:
>
> auto f2 = f; // here f is treated like a variable
> f; // here f means call itself, but it looks exactly the same
>
> Why on earth is this needed ?
(implicit) properties.
#auto f2 = f; // f can be a variable or a property getter
(Uhm, that would work, if there weren't that issue with using auto + a
getter that way.)
I like this feature. It gets rid of many () pairs, and I think it's a
straightforward way for properties.
L.
More information about the Digitalmars-d-bugs
mailing list