Am 04.09.2012 22:18, schrieb Alex Rønne Petersen:
On 04-09-2012 22:13, Benjamin Thaut wrote:
This is already what scope does today. See http://dlang.org/function.html:

"references in the parameter cannot be escaped (e.g. assigned to a
global variable)"

It's just that the compiler doesn't actually enforce it fully.


Does the compiler already use this information to optimize array literals?

Kind Regards
Benjamin Thaut

Reply via email to