This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: problem with scm_set_object_property_x
- To: Bill Schottstaedt <bil at ccrma dot stanford dot edu>
- Subject: Re: problem with scm_set_object_property_x
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 09 May 2000 00:11:10 +0200
- Cc: guile at sourceware dot cygnus dot com
- References: <200005081253.FAA28780@cmn14.stanford.edu>
Bill Schottstaedt <bil@ccrma.stanford.edu> writes:
> scm_set_object_property_x(
> gh_define(...),
> scm_string_to_symbol(gh_str02scm("documentation")),
> gh_str02scm("some text"));
>
> but the object's property list remains empty. I also tried
> to use scm_set_object_properties_x here, and screwed around
> with the thing returned by gh_define, all to no avail.
The thing returned by gh_define is the vcell that has been defined,
not the object that you passed to gh_define. You probably want to do
something like this:
gh_define (symbol, object);
scm_set_object_properties_x (object,
scm_string_to_symbol(
gh_str02scm("documentation")),
gh_str02scm("some text"));
- Marius