[Top][All Lists]

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

Re: FFI support for disjoint types

From: Andy Wingo
Subject: Re: FFI support for disjoint types
Date: Sat, 20 Nov 2010 22:59:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Thu 11 Nov 2010 17:24, address@hidden (Ludovic Courtès) writes:

> (define-wrapped-pointer-type class?
>   wrap-class unwrap-class print-class)

Looks great! Would be a great addition to system foreign.

>        (with-syntax ((type-name (datum->syntax #'pred (gensym)))
>                      (%wrap     (datum->syntax #'wrap (gensym))))
>          #'(begin
>              (define-record-type type-name
>                (%wrap pointer)
>                pred
>                (pointer unwrap))

You wouldn't need to do the gensym dance if we fixed Andreas' bug
(, I don't think...


reply via email to

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