chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #739: Allow more specific foreign types


From: Chicken Trac
Subject: [Chicken-janitors] #739: Allow more specific foreign types
Date: Sun, 11 Dec 2011 16:29:19 -0000

#739: Allow more specific foreign types
-------------------------------+--------------------------------------------
 Reporter:  syn                |       Owner:  felix
     Type:  enhancement        |      Status:  new  
 Priority:  minor              |   Milestone:  4.8.0
Component:  compiler           |     Version:  4.7.x
 Keywords:  ffi foreign types  |  
-------------------------------+--------------------------------------------
 Currently, typedefs cannot be used directly but have to be replaced by an
 approximated equivalent FFI type, e.g. {{{typedef unsigned int foo}}}
 would have to to be referred to as {{{unsigned-int}}} yielding some
 compiler warnings. Even worse: If the type is defined differently for
 different platforms, say, it might not work at all. My suggestion is to
 allow a similar construct like {{{(struct "foo")}}} to say {{{(unsigned-
 int "foo")}}}. With this the compiler would know what foreign type to use
 but insert the correct typedef name in the generated code.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/739>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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