Skip to content

Comment on Lumen – A micro-framework by Laravelparent

Comments

Call-time pass-by-reference (passing with '&') has been either deprecated or removed. It has to be done in the function signature.

only duplicated if you modify the data inside the called function

I did not know that. Because I've observed the duplication behavior, I assumed that it was never a reference. I guess that's a "feature" when you don't really have any fine-grained, explicit control over pointers or references.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.