On 9/2/11 9:52 PM, Andrej Mitrovic wrote:
On 9/3/11, Timon Gehr<timon.g...@gmx.ch>  wrote:
Related: I think that function pointers should implicitly decay to
delegates. This would allow the compiler to optimize some delegate
literals to function pointers if they don't access the outer scope,
without breaking any code that wants to use such a function literal as a
delegate.


Well in TDPL it says that function literals are function literals by
default unless the compiler determines they must be delegates. But
currently all function literals are delegates unless explicitly marked
with 'function'.

Yah, Walter explicitly approved that paragraph but didn't get around to implementing it.

Andrei

Reply via email to