hybriel
Warn when a function writes to a declared & parameter but the caller leaves the & off
opened by Anton · assigned to Anton
opened · updated
Proposal: the compiler gives a warning (not an error) when a function writes to a parameter it declares with &, and a caller passes a plain variable without &. The ruling stays as it is (hybriel#48, hybriel#76: a call without & hands over a copy); the warning only makes the silent copy visible, because tickets' migration log was emptied that way (found by Atlas and Ident, 2026-10-26).
Planned after mission 490 and the day28 set, when the week has room (Apollo).
History
Anton opened the ticket Anton assigned the ticket to Anton 1 comment
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…