[sqlite-dev] Are %destructor and %token_destructor necessary when garbage collector is used?

4 views
Skip to first unread message

Peng Yu

unread,
Feb 24, 2019, 10:46:04 PM2/24/19
to sqlite-dev
Hi,

lemon has %destructor and %token_destructor. But if I use a garbage
collector (Boehm) anyway for the rest of my program, should I use the
same gc for both terminal and non terminal nodes, in which case there
is no need to set %destructor and %token_destructor? Is it so? Thanks.

--
Regards,
Peng
_______________________________________________
sqlite-dev mailing list
sqlit...@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-dev

Richard Hipp

unread,
Feb 25, 2019, 7:10:10 AM2/25/19
to sqlit...@mailinglists.sqlite.org
On 2/24/19, Peng Yu <peng...@gmail.com> wrote:
> Hi,
>
> lemon has %destructor and %token_destructor. But if I use a garbage
> collector (Boehm) anyway for the rest of my program, should I use the
> same gc for both terminal and non terminal nodes, in which case there
> is no need to set %destructor and %token_destructor? Is it so? Thanks.

That sounds like a reasonable conjecture, but having no experience
with the Boehm GC, I cannot say from experience.
--
D. Richard Hipp
d...@sqlite.org

Reply all
Reply to author
Forward
0 new messages