This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

signal error from my smob_func



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]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]