[plt-scheme] scheme_close_managed

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jun 27 17:38:52 EDT 2007

At Wed, 27 Jun 2007 15:27:12 -0500, Chongkai Zhu wrote:
>     scheme_add_managed( NULL, ret, &f_close, NULL, 1);

scheme_add_managed() returns a Scheme_Custodian_Reference* that you
should keep...

>     scheme_remove_managed( NULL, argv[0]);

and pass as the first argument to scheme_remove_managed().


The docs are not clear on this; they say that you can pass NULL to
scheme_removed_managed(), but the documentation does not say what NULL
means. In fact, NULL means "do nothing".

Matthew



Posted on the users mailing list.