[Gambas-devel] Correct way to get pointer to current object

Randall Morgan rmorgan62 at ...176...
Tue Feb 14 02:43:56 CET 2012


Never mind. I got it figured out.

On Mon, Feb 13, 2012 at 12:52 PM, Randall Morgan <rmorgan62 at ...176...>wrote:

> Hi Benoit,
>
> I have removed all but the bare minimum code and I am asking for you to
> look at this code. I have left only the property and
>  GslComplex_Add() method in the c_complex.c file. My issue is that
> although I have defined "THIS" in the header file I get a null value for
> THIS in the GslComplex_Add method. Yet it is not null in the property
> methods. The c_complex.c and c_complex.h files have been committed to the
> repo for your convince. I have included most of your suggestions. The only
> thing I have not included is that I am still creating and returning a new
> object.
>
> If you could provide me a better understanding as to why THIS is null in
> GslComplex_Add() I would be very grateful.
>
> Randall
>
> --
> If you ask me if it can be done. The answer is YES, it can always be done.
> The correct questions however are... What will it cost, and how long will
> it take?
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120213/56a5c65a/attachment.html>


More information about the Devel mailing list