Re: Trouble with returning parameters passed in to C primitives.

2012-12-07 Thread Richard Shann
Thank you! I am much clearer on the meaning of quote now. Richard Shann > On Dec 7, 2012 5:51 AM, "Richard Shann" wrote: > > If I pass 'a in as a parameter I get something back which prints on > the > > console as (quote a) but which is not eq? to 'a > > You seem to be double quoting the value.

Re: Trouble with returning parameters passed in to C primitives.

2012-12-06 Thread Daniel Hartwig
On Dec 7, 2012 5:51 AM, "Richard Shann" wrote: > If I pass 'a in as a parameter I get something back which prints on the > console as (quote a) but which is not eq? to 'a You seem to be double quoting the value. No need for ' the second time. > I can pass in a string and get an equal? string ba

Trouble with returning parameters passed in to C primitives.

2012-12-06 Thread Richard Shann
In GNU/Denemo we have been calling functions written in C from scheme by defining procedures via scm_c_define_gsubr. Recently I have tried returning one of the parameters passed (more exactly, the scm_list_ref of a scm_car() of one of the parameters) and I have run into trouble. If I pass 'a in as