1
General / Re: Parameter passing oddities
« Last post by ASerge on Today at 09:42:03 pm »As I understand it, he wants a compilation error, not runtime.And constref is essentially the same as const in this context.
procedure Add(constref a, b: Integer; out c: Integer); begin if ((@a = @c) or (@b = @c)) then begin WriteLn('Output can not be input.'); Exit; end; c := a + b; end;