Re: scope in function argument

2015-09-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 23 September 2015 at 17:09:40 UTC, Freddy wrote: What does it mean when there is a scope in a function argument. That you are not supposed to let that reference escape the function scope. The compiler does little verification of this right now, but may optimize

scope in function argument

2015-09-23 Thread Freddy via Digitalmars-d-learn
What does it mean when there is a scope in a function argument. --- void func(scope int* a){} ---

Re: scope in function argument

2015-09-23 Thread Ali Çehreli via Digitalmars-d-learn
On 09/23/2015 10:11 AM, Adam D. Ruppe wrote: > On Wednesday, 23 September 2015 at 17:09:40 UTC, Freddy wrote: >> What does it mean when there is a scope in a function argument. > > That you are not supposed to let that reference escape the function > scope. Just to compl