guile seems to catch this error gracefully when in the interpreter,
but when guile is embedded, it SEGV's the program, which is a bit
ugly, since it is possible to make sure that the hash table is
non-empty, and avoid the SEGV.

-russ


guile> (let ((ht (make-hash-table 0))) (hashv-set! ht 0 'a) (hashv-ref ht 0))
standard input:3:33: In procedure hashv-set! in expression (hashv-set! ht 0 ...):
standard input:3:33: Bad memory access (Segmentation violation)
ABORT: (signal)

Type "(backtrace)" to get more information.


--
"Reasonable people adapt themselves to the world.  Unreasonable people
attempt to adapt the world to themselves.  All progress, therefore,
depends on unreasonable people."
             -- George Bernard Shaw

Reply via email to