FFI Addendum Typo

Wolfgang Thaller <[email protected]>
Newsgroups gmane.comp.lang.haskell.ffi
Message-ID <[email protected]>
In subsubsection 4.1.5 C Argument Promotion, the C example function
void foo (a) {
   float a;
   ...
}

should instead read

void foo (a)
float a;
{
   ...
}

The former declares a local variable that shadows the parameter.

Cheers,

Wolfgang
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.