Re:Better C – A subset of D Programming Language
by WalterBright on Tuesday April 28, 2020 @07:38AM
(#23005993)
> Can it guarantee that (immutable) argument copies will be elided in certain circumstances?
No, but it's an interesting idea I never thought of. By the way, passing by 'ref' works handily and avoids icky pointer passing, while being efficient. I recommend as a "best practices" coding style using 'ref' parameters instead of pointers where possible.
No, but it's an interesting idea I never thought of. By the way, passing by 'ref' works handily and avoids icky pointer passing, while being efficient. I recommend as a "best practices" coding style using 'ref' parameters instead of pointers where possible.