[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extract_data_from_object considered dangerous
From: |
Stefan Monnier |
Subject: |
Re: extract_data_from_object considered dangerous |
Date: |
Sun, 22 Sep 2019 16:53:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> The original idea was to use the pointer right away, so that GC
> couldn't happen.
Indeed, I think that it might be the case that currently this problem is
only hypothetical, but relying on "the GC probably can't happen now" is
too fragile for my taste.
> If we want to lift this restriction, I think the
> function should return a Lisp object, not a char *.
That's also my impression, but I was wondering is there was a good
reason why it wasn't done this way in the first place.
Stefan