lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scm_gc_mark (smob->self_scm ())


From: David Kastrup
Subject: Re: scm_gc_mark (smob->self_scm ())
Date: Fri, 28 Aug 2015 07:11:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Dan Eble <address@hidden> writes:

> On Aug 27, 2015, at 23:59 , Dan Eble <address@hidden> wrote:
>> In your opinion, does scm_gc_mark (smob->self_scm ()) deserve to be
>> implemented as member function in Smob?
>
> Never mind.  That seems like a slippery slope.

I remember it being a complication with the mark hook that it could be
called on already swept objects in GUILE 2.0.  So it mustn't go through
any virtual table mechanism as it must not rely on objects not already
being destructed.  And of course there must be no allocations etc.
That's of course also doable with member functions but the headaches
might not be worth the gain.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]