Qs about structs and their references WRT C functions and variables

Rick Mann rmann-d-lang at latencyzero.com
Wed Jan 31 02:17:21 PST 2007


Hasan Aljudy Wrote:

> 
> Why? It *is* modified when you modify it inside the function ..

Well, I mean in the case where you do NOT modify it in the function, and you want to communicate(and even enforce) that contract. Allowing const on parameters would allow the compiler to generate errors in the function.


More information about the Digitalmars-d-learn mailing list