C_word is the fundamental scheme object type. The underlying type of int or long is just used to make the width of this type 32-bit or 64-bit, and the actual representation is indicated by a type tag (some subset of bits in that word). So it actually can return an arbitrary result. See Data Representation in the manual for details.
Jim On Feb 12, 2011, at 6:47, David Dreisigmeyer <dwdreisigme...@gmail.com> wrote: > Thanks Felix, > > Mt question wasn't clear. What about C_word's use here: > > int CHICKEN_eval_string (char *str, C_word *result) > > Wouldn't this be able to return arbitrary results? I was thinking > that this is like CHICKEN_eval_string_to_string except an actual > scheme expression is returned instead of a string. > > > On Sat, Feb 12, 2011 at 5:11 AM, Felix > <fe...@call-with-current-continuation.org> wrote: >> From: David Dreisigmeyer <dwdreisigme...@gmail.com> >> Subject: [Chicken-users] C_word type / Cython (warning: passing argument 2 >> from incompatible pointer type) >> Date: Fri, 11 Feb 2011 17:47:24 -0500 >> >>> Here's the solution on the Cython side. >>> >>> Is C_word a long (or int) though? >>> >> >> A long on 64-bit platforms and an int on 32-bit systems. >> >> >> cheers, >> felix >> > > _______________________________________________ > Chicken-users mailing list > Chicken-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/chicken-users _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users