Subject | Re: [firebird-support] udf's by value (by reference?) |
---|---|
Author | Paul Vinkenoog |
Post date | 2007-02-10T22:59:30Z |
Hi Marc,
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
> function dsbTrue: Smallint; cdecl;These two functions are perfect examples of returning by value.
> 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.
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