Re: set_weak_flag() for objects?

Henrik Grubbström <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Organization Roxen Internet Software AB
Message-ID <[email protected]>
On Wed, 21 Sep 2016, Stephen R. van den Berg wrote:

> Henrik Grubbstr?m wrote:
>> NB: There's a special case in the reference counting for variables
>> in objects of classes written in pure Pike, where direct circular
>> references aren't counted (cf PIKE_T_NO_REF_*), so the above
>> construction isn't strictly needed (but still recommended).
>
> Then why does my simple self-referencing example class not autodestruct?

Oops, my fault; it was only activated for variables declared as object or 
as function.

Fixed for mixed in Pike 8.0 and 8.1.

-- 
Henrik Grubbström					[email protected]
Roxen Internet Software AB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.