Guile Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrong type argument in position 1: %S
Brad Bowman <bsb@cs.monash.edu.au> writes:
> Replying to my own message, how sad.
>
> I found the source of the 1.2 - 1.3 discrepancy, it was
> gh_lookup.
>
> gh_lookup("obs.");
>
> In 1.2 it returned the procedure "obs." I define in
> an initialization script, now in 1.3 it doesn't work.
> It returns SCM_UNDEFINED instead.
> When I initialize then enter the repl 'obs.' is there ok.
>
> My current work around is:
>
> gh_eval_str("(eval 'obs.)");
>
> If that's informative. It does return the procedure.
> gh_lookup maybe doing what it's supposed to do still, perhaps I
> should be using gh_module_lookup though registered-modules is empty.
>
> Have I misunderstood gh_lookup or is it broken?
In guile-1.3, the default module for the read eval print loop is now
'guile-user', not 'the-root-module', so you code might have been
placed in one place, while gh_lookup is looking somewhere else. I had
similar problems when I moved to 1.3. I don't use gh_lookup, and I
haven't read the code for it, so I can't be sure. I don't know if
this helps.
-russ
Guile Home |
Main Index |
Thread Index