The Phobos Put

Dennis dkorpel at gmail.com
Wed Mar 29 11:48:43 UTC 2023


On Wednesday, 29 March 2023 at 11:10:42 UTC, Salih Dincer wrote:
> Why does my `put` work but the Phobos `put` doesn't work with a 
> slice?

Your `put` doesn't take `range` by `ref`, so it allows you to 
pass an rvalue. Consequently, it doesn't advance the range from 
the callers perspective.


More information about the Digitalmars-d-learn mailing list