This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
signal error from my smob_func
- To: guile at sourceware dot cygnus dot com
- Subject: signal error from my smob_func
- From: Sergey Dolin <dsa-ugur at chel dot surnet dot ru>
- Date: 11 May 2000 16:23:16 +0600
- Organization: Ditworth. Magic, Inc.
If all is ok my func would return new smob (object what is oracle session)
If logon fail - func could return simple #f, but i do need the right
smob to be returned in order to get error message...
So this will not work:
(let ((session (o:log "scott" "tiger" "mydb")))
(if session
(...)
(display (o:erhms session))))
The altern-s:
I.
(let ((session (o:log "scott" "tiger" "mydb")))
(if (o:loggedon session)
(...)
(display (o:erhms session))))
and
II.
(let (session)
(if (o:log session "scott" "tiger" "mydb")
(...)
(display (o:erhms session))))
will work but those don't seemed to look good...
Probably continuation will be better?
...Is where standard solution for what?
--
Sergey
05/11/2000 16:07 mailto:dsa-ugur@chel.surnet.ru
Gnus v5.8.3/XEmacs 21.1 (patch 3) "Acadia" [Lucid]