www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - "in" vs "const"

reply Sean Eskapp <eatingstaples gmail.com> writes:
For function parameters where the "scope" keyword doesn't matter (e.g.
intrinsic types, many classes, structs, etc.), does "in" produce different
code from "const"?
Jan 17 2011
parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Mon, 17 Jan 2011 10:25:38 -0500, Sean Eskapp <eatingstaples gmail.com>  
wrote:

 For function parameters where the "scope" keyword doesn't matter (e.g.
 intrinsic types, many classes, structs, etc.), does "in" produce  
 different
 code from "const"?

No. -Steve
Jan 17 2011