nponeccop/HNC

Polymorphic FFI constants such as elist/nil/[] are not supported

nponeccop opened this issue · 0 comments

elist constant was incorrectly passed to functions as a function pointer &ffi::elist.

Two possible solutions are:

  • to pass it as polymorphic nullary function - as ffi::elist<int>()
  • to pass it as a static member of a template class -
    ffi::elist<int>::value