← Back to context Comment by pjmlp 4 hours ago Delphi has allowed this for quite some time. 2 comments pjmlp Reply HexDecOctBin 36 minutes ago Yeah, but then I'll have to deal with Embarcadero. vintagedave 3 hours ago Yes - OP, you can do this via inline vars and consts: begin var foo : string := 'hello'; const c : integer = 5; var bar := GetBar(); // type inference even // and in blocks: for var i := low(x) to high(x) do... end;
vintagedave 3 hours ago Yes - OP, you can do this via inline vars and consts: begin var foo : string := 'hello'; const c : integer = 5; var bar := GetBar(); // type inference even // and in blocks: for var i := low(x) to high(x) do... end;
Yeah, but then I'll have to deal with Embarcadero.
Yes - OP, you can do this via inline vars and consts: