Re: delete method in class object

Mike Aubury <[email protected]> Fri, 4 Nov 2022 08:29:05 +0000
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WHgRcf9VZ9R3LfFzFAm2e2gXOb9cCT6oDdKsZS+_FZB3w@mail.gmail.com>
I dont think there is an explicit delete/dispose - theres reference counts
and its auto disposed when there are no more references to it.
That said - I dont think it would be hard to add an explicit
delete/dispose...

On Fri, 4 Nov 2022 at 07:29, Iwan AB <[email protected]> wrote:

> Dear Mike,
>
> When using class object, calling delete() method, generate the following
> error message:
> Unable to find function : :test1.delete
> (assuming that my class object is test1)
> Why is that?
>
> test1.4gl
> class test1
>
> function add(a, b)
>    define a, b integer
>    return a+b
> end function
>
> end class
>
> ptest1.4gl
> main
>    define a object(test1)
>    let a = test1.new()
>    display a.add(1,2)
>    call a.delete()
> end main
>
> $ ptest1.4ae
>           3
> Unable to find function : :test1.delete
>
> Best regards,
>
> Iwan
>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss