make-hash-table: Wrong type argument

2008-07-09 Thread Shakthi Kannan
Hi, Newbie here. I am trying to pass key/value to a procedure to add it to the hash-table. It fails at: "you"ERROR: In procedure hash_fn_create_handle_x: ERROR: Wrong type argument in position 1: "foo" === BEGIN === #!/usr/local/bin/guile -s -e main -s !# (use-modules (ice-9 rdelim)) (define m

Re: Passing C pointers through guile

2008-07-09 Thread Ludovic Courtès
Hi, "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: > On Wed, 9 Jul 2008, Greg Troxel wrote: >> Does C guarantee that pointers fit in unsigned long? > > I don't know. But in practice: Yes. That's usually the case but it's not guaranteed, which is why C99 provides `uintptr_t' in . > Sure, if

Re: Passing C pointers through guile

2008-07-09 Thread Greg Troxel
"Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: > Ludovic Court?s: >> Hi, >> >> "Maciek Godek" <[EMAIL PROTECTED]> writes: >> >>> is there any portable and recommended way for passing C pointers around >>> in guile environment? >>> I think of something like scm_to_ptr (analogous to scm_to_int e

Re: Passing C pointers through guile

2008-07-09 Thread Kjetil S. Matheussen
On Wed, 9 Jul 2008, Greg Troxel wrote: > "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes: > > > Ludovic Court?s: > >> Hi, > >> > >> "Maciek Godek" <[EMAIL PROTECTED]> writes: > >> > >>> is there any portable and recommended way for passing C pointers around > >>> in guile environment? > >>> I t