This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: correct way of having a function pointer inside a GTY()-ed struct?


Steven Bosscher wrote:
On Sat, Mar 21, 2009 at 1:17 PM, Basile STARYNKEVITCH
<basile@starynkevitch.net> wrote:
But last time I tried (more than a year ago) that didn't work because
gengtype is unhappy with GTY((skip))-ed fields of a type it does not
understand.

Why do you have to put that data structure in GC memory?

In a simple sentence. Because all MELT data are GC-ed.


As a hint every "functional" language implementation I know about (all Lisps & Schemes, Ocaml, Haskell, SML/NJ...) have garbage collected closures. So does MELT.

Do you want me to elaborate on this?

Regards

--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]