On 4/30/24 05:14, Walter Bright wrote: > I do not recall exactly why this `ref` behavior was done for foreach, > but it was either a mistake or was done precisely to make generic code work. You mean fail silently.