digitalmars.D.learn - Scope const
- Kagamin (1/1) Apr 11 2009 If "in" is equivalent to "scope const". What "scope" means? Does it mean...
- Jarrett Billingsley (4/5) Apr 11 2009 Someone else correct me if I'm wrong, but the definition of 'in' as
- Ali Cehreli (6/13) Nov 02 2009 Could someone please verify that statement.
If "in" is equivalent to "scope const". What "scope" means? Does it mean that this argument doesn't escape scope of this function? Then "const" parameters are not quite equivalent to "in" parameters.
Apr 11 2009
On Sat, Apr 11, 2009 at 5:33 AM, Kagamin <spam here.lot> wrote:If "in" is equivalent to "scope const". What "scope" means? Does it mean that this argument doesn't escape scope of this function? Then "const" parameters are not quite equivalent to "in" parameters.Someone else correct me if I'm wrong, but the definition of 'in' as 'scope const' is a vestige from the original const system that was in D2 and 'scope' no longer really means anything.
Apr 11 2009
Jarrett Billingsley Wrote:On Sat, Apr 11, 2009 at 5:33 AM, Kagamin <spam here.lot> wrote:Could someone please verify that statement. If so, 'scope' should be removed from Function Parameters at http://digitalmars.com/d/2.0/function.html Thank you, AliIf "in" is equivalent to "scope const". What "scope" means? Does it mean that this argument doesn't escape scope of this function? Then "const" parameters are not quite equivalent to "in" parameters.Someone else correct me if I'm wrong, but the definition of 'in' as 'scope const' is a vestige from the original const system that was in D2 and 'scope' no longer really means anything.
Nov 02 2009