Re: Const reference with primitive types?
Posted by leogargu on Jan 23, 2015; 9:28pm
URL: https://forum.librecad.org/Const-reference-with-primitive-types-tp5711010p5711012.html
Hey, thanks for the prompt and complete response! :)
It crossed my mind too that it could be to make the code faster, which I would understand if the variables were arrays or objects, but with a double I wouldn’t know what to expect. Being new to CAD software, to me this looked like the developer was trying to save memory, but I couldn't really see the benefit in this case so I thought I was missing something...