still confused about call by reference

Hoenir mrmocool at gmx.de
Wed Oct 31 17:29:12 PDT 2007


>> But it's still useful to have a 
>> constructor function to i.e. check valid values, perform preprocessing on 
>> the values, fill in other members based on values that you give, etc.
>>
Yeah, this makes sense. I will use literals nevertheless cause I can't 
afford to check values etc. This vector class is supposed to be used in 
a ray tracing application.

> Oh and I guess I should mention, struct to struct assignment is always 
> defined as a bit copy.  You can't intercept it in any way. 
> 
Thanks for the info.


More information about the Digitalmars-d-learn mailing list