Does using "const" keyword for scalar parameters mean anything?
tcak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 4 04:28:50 PDT 2015
[code]
void test( const int a ){}
[/code]
Does that "const" make any difference at all? At the end, it is a
scalar, and passed as value.
More information about the Digitalmars-d-learn
mailing list