More C interfacing issues

Alastair Reid reid at reid-consulting-uk.ltd.uk
Tue Jul 2 17:18:17 EDT 2002


> Uh, oh! Don't even try this if you ever want to be thread-safe!  :-}

Yeah, I know.  

For what it's worth, it's not what GreenCard does with the native Hugs
backend (at least, it wasn't last time I looked).  Hugs primitives are
allowed to return tuples of values so they do.  It's a shame C doesn't
support multiple return values and kinda surprising given that C is
like assembler in so many other ways.

-- 
Alastair Reid   
alastair at reid-consulting-uk.ltd.uk  
http://www.reid-consulting-uk.ltd.uk/alastair/







More information about the FFI mailing list