The pointer class does not allow me to create a pointer instance from 
Rexx code. So unless a NULL pointer is returned from a method/function 
API I can not get access to a NULL pointer. I need some way to pass a 
NULL pointer to a method/function API that uses the POINTER argument 
type. Otherwise I have to use a RexxObject type and then test to see 
what kind of object it is so I can manipulate the pointer value prior to 
calling the C API I am trying to invoke.

I am just trying to figure out how to best accomplish this task without 
a lot of overhead.

David Ashley


On 10/12/2009 03:19 PM, Rick McGuire wrote:
> Why don't you just use a pointr with a value of 0?  I even added an
> isNull Method to the pointer class already (at your request, I might
> add) to give special processing for null pointers.
>
> Rick
>
> On Mon, Oct 12, 2009 at 4:13 PM, David Ashley
> <[email protected]>  wrote:
>    
>> I have several instances in the RexxGTK project where I need to pass a
>> NULL pointer from the Rexx code to an API. The underlying C API uses a
>> Null pointer to indicate that we are finished calling that API in a
>> repetitive fashion.
>>
>> It would be really nice if The Rexx subsystem could use the .nil object
>> as an argument with a POINTER type to indicate a Null pointer. Of
>> course, I know the .nil object is not a member of the Pointer class but
>> it would be very useful to be able to use it to indicate a NULL pointer.
>>
>> I don't suggest that we extend the Pointer class so that we can create
>> pointers of our own. I just need a way to indicate a NULL pointer to a
>> method API in a convenient fashion.
>>
>> I am also open to other ideas on this topic.
>>
>> Thanks
>> David Ashley
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Oorexx-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
>>      
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>    


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to