This is the mail archive of the guile@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] |
> From: Tano Fotang <fotang@yahoo.com> > I need some help in determining the type > of objects returned by gh_define: > > SCM func=gh_define("bla",proc); > Then: > gh_display(func) ==> (bla . #<procedure (m w)>) > gh_symbol_p(gh_car(func)) ==> TRUE > Now, what type is gh_cadr(func) ?Tests > using everything from gh_boolean_p to gh_procedure_p > return FALSE. > I was hoping for it to be a procedure. The cdr is a procedure, the cadr is the car of a procedure (ouch). Note the . between bla and #<proc...>. -- --Keith This mail message sent by GNU emacs and Linux. Food, Shelter, Source code.