Pascal is an ugly language
Very rarely, but sometimes yes
.
The wrapping solution is nice but makes it more lines of code, that is what I'd like to prevent :-).
ex_var := ex_func( ex_param )
if ( ex_var = 0) then
begin
//whatever
end;
Yes, that is what I rather did before. The idea was to change it into one line.
if ( ex_func( ex_param ) = 0) then
begin
//whatever
end;
I need to work with the return value afterwards, so this solution is neat but not suitable in my case.
Thanks you two for clearification
!