Re: HToolkit 1.0 released

Marcin 'Qrczak' Kowalczyk <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
Dnia czw 24. lipca 2003 12:18, Wolfgang Jeltsch napisał:

> The problem for creating Ada bindings is that there is no standard mapping
> of (void *) to an Ada type. But if you want to handle pointers to values of
> arbitrary type but not to functions, you can use (char *) instead of (void
> *)

Using void * for function pointers in C is non-portable. There is no reason a 
C implementation could represent char * and void * differently, where there 
existed (or still exist?) implementations which represented other pointers 
differently (word-addressed Crays where char * and void * need to store a 
small byte offset in addition to the native pointer).

-- 
   __("<         Marcin Kowalczyk
   \__/       [email protected]
    ^^     http://qrnik.knm.org.pl/~qrczak/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.