tickets

hybriel #235

Warn when a function writes to a declared & parameter but the caller leaves the & off

open

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

  1. Anton opened the ticket
  2. Anton assigned the ticket to Anton
  3. 1 comment

    1. Anton
        Write…

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.