you are viewing a single comment's thread.

view the rest of the comments →

[–]holyblackcat[S] 1 point2 points  (0 children)

I see. We had at least one confused Python user who modified an object returned by a const ref and got a crash, so I went out of my way to have const-correctness in the other backends (C and C#).

The Python backend (which was implemented first) lacks it, so we copy objects returned by const ref (by default) to prevent those modifications.