<mwette>random_auroras: not sure what you want. Use call-with-values on http-get; the first value is a <response> the second is the body. I have just run demos with it but that is how I used it. <mwette>you need (call-with-values (lambda () (http-get ..)) (lambda (resp body) ...) <daviid>random_auroras: the manual says "Returns two values: the response read ... and the body ..." which means you have to either use receive - in (ice-9 receive) or call-with-values as mwette showed you above ... <random_auroras>I can get the value into a variable. Oddly-enough though, (with-output-to-file filename (receive (header data) (http-get my-url) (lambda () data))) seems to be having a hard-time. ***fibratio` is now known as fibration
<turlando>I have created some foreign object types and I have gsubrs returning those types. Is there a way at run time to determine if an SCM value returned from one of those functions is one of the types I defined? <mwette>turlando: scm_make_foreign_object_type(scm_from_utf8_symbol("mdes"),..) will then set up the printer for that type to show the name <mwette>turlando: for my "mdes" object type , (display (make-mdes-1 'G1)) returns `#<mdes 15d5c00>' <mwette>turlando: Ah. You want a predicate? let me check ... <mwette>turlando: it looks like you need to use goops (yuck imo) <mwette>I tried to generrate a predicate in C but does not work. This is it: static SCM <mwette> return SCM_IS_A_P(cdes_type, _des)? SCM_BOOL_T: SCM_BOOL_F; <mwette>turlando: works now `return SCM_IS_A_P(_des, cdes_type): SCM_BOOL_T: SCM_BOOL_F;' <mwette>turlando: I have submitted bug report to add something to the manual.