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

Reply via email to