[plt-scheme] C interface and inspectors

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Aug 11 17:51:50 EDT 2004

At Wed, 11 Aug 2004 12:05:29 -0700, Dmitriy.Zavin at infineon.com wrote:
> The problem I am having is how to supply a new
> inspector to the struct when I am creating it. make_inspector() (as seen
> in comment) (from src/struct.c) doesn't have a prototype in scheme.h,
> and is not a dynamic symbol so my module refuses to load; which leads to
> my question. Is there a reason why make_inspector() should/could not be
> called from an outside module that will be loaded into mzscheme? 

No reason. I've added scheme_make_inspector() to the export list for
future versions.

Meanwhile, use something like

  _scheme_apply(scheme_builtin_value("make-inspector"), 0, NULL)

Matthew



Posted on the users mailing list.