This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem with scm_set_object_property_x


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]