This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: signal error from my smob_func
- To: Michael Livshin <mlivshin at bigfoot dot com>
- Subject: Re: signal error from my smob_func
- From: Sergey Dolin <dsa-ugur at chel dot surnet dot ru>
- Date: 11 May 2000 16:52:54 +0600
- Cc: guile at sourceware dot cygnus dot com
- Organization: Ditworth. Magic, Inc.
- References: <m3ln1hgzcb.fsf@ugur.surnet.ru> <s3ya5h1iml.fsf@bigfoot.com>
ML>>> So this will not work:
ML>> (let ((session (o:log "scott" "tiger" "mydb")))
ML>> (if session
ML>>> (display (o:erhms session))))
ML>what about:
ML>(let ((session (o:log "whatever")))
ML> (cond
ML> ((o:error? session)
I fought about it. It's not looked very nice. My aim - to make
interface simple, but instead i make new "api" call "error" what Oracle
had not have before...
It's not very serios and till no another way I'll go this road.
ML>see http://srfi.schemers.org/srfi-12 (withdrawn, unfortunately, but
ML>it's the right idea and may give you some methodological hints).
thanx. It's what i was looking for.
--
Sergey
05/11/2000 16:44 mailto:dsa-ugur@chel.surnet.ru
Gnus v5.8.3/XEmacs 21.1 (patch 3) "Acadia" [Lucid]