chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] C unions and structs, how to access them ?


From: felix winkelmann
Subject: Re: [Chicken-users] C unions and structs, how to access them ?
Date: Tue, 1 Nov 2005 06:58:25 +0100

On 11/1/05, Pupeno <address@hidden> wrote:
>
> Right. But when ? Can the Garbage Collector take care of it ? I mean, is there
> a way to make the Garbage Collector take care of e ?

(set-finalizer! OBJECT PROCEDURE)

will call PROCEDURE once OBJECT isn't referenced anymore.

> Or is there another way to create an XEvent in which the garbage collector
> will take care of it ? I now have (define-foreign-record XEvent ...) but it
> seems it didn't made a make-XEvent.

No, it doesn't define a constructor, you have to create one yourself.


cheers,
felix




reply via email to

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