Subject | Re: By Description (was: Re: [ib-support] Unverified Firebird |
---|---|
Author | Martijn Tonies |
Post date | 2001-09-05T05:42:49Z |
And what's the value in the RDB$MECHANISM column in the
RDB$FUNCTION_ARGUMENTS table? 2?
--
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
"Doug Chamberlin" <dchamberlin@...> wrote in message
news:4.3.2.7.2.20010904175236.020b6540@......
RDB$FUNCTION_ARGUMENTS table? 2?
--
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
"Doug Chamberlin" <dchamberlin@...> wrote in message
news:4.3.2.7.2.20010904175236.020b6540@......
> At 9/4/2001 04:25 PM (Tuesday), Martijn Tonies wrote:memory.
> > > > where can I find information about UDFs arguments 'by descriptor'?
>
> "By Descriptor" is an alternative method of passing an argument to a
> function. Where "by reference" passes a pointer to the argument and "by
> value" passes the argument value itself (usually on the stack or in a
> register) "by descriptor" passes a pointer to a descriptor block in
> The descriptor block usually contains a type identifier, a value orpointer
> to a value, and any other useful info. In this case the "other usefulinfo"
> would be a NULL flag.buffer
>
> I first encountered descriptors in VMS where, IIRC, they were often used
> for passing strings. The descriptor held the buffer size of a string
> as well as the "used size". This was often more useful than passing aincoming
> pointer to a char array (a la C) since the called function could safely
> utilize the string buffer as it needed without having to treat the
> string as readonly.
>
> If we had a standard descriptor definition and FB could be told to pass
> arguments to UDFs using it then the UDFs could detect NULLs being passed.
> This would be a big improvement! If UDFs could also return values via
> descriptors they could return NULL states as well.
>
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>