Subject Re: [firebird-support] udf's by value (by reference?)
Author Paul Vinkenoog
Hi Marc,

> function dsbTrue: Smallint; cdecl;
> begin
> Result := -1;
> end;
>
> function dsbFalse: Smallint; cdecl;
> begin
> Result := 0;
> end;

> Clearly, I'm returning by value. But I'm looking at the Interbase
> V6.0 Beta documentation (DevGuide.pdf, SQL Statement and Function
> Reference.htm), which seems to indicate that the default is to
> return by reference.

These two functions are perfect examples of returning by value.
Returning by reference is useful if you want to be able to return null
pointers, which is clearly not the case here.


Hope this helps,
Paul Vinkenoog