Hey all yoh!
Is there any "official" way to check whether or not
a function returns a (specified) value?
As I ran into the problem, I quickly came with a workaround:
(define unspecified (if #f #t))
which allows to define the most basic predicates:
(define (unspecified? x) (eq? x unspecified))
(def
I'm having a bit of a problem with using statprof. I checked it out
from CVS (:pserver:[EMAIL PROTECTED]:/sources/guile
CVSROOT, guile/guile-statprof module). I left it in the checkout tree,
and am using GUILE_LOAD_PATH to point to the files.
I am using guile 1.6.8 on Mac OS X, installed via
Hey Maciek,
On Fri 14 Nov 2008 11:38, "Maciek Godek" <[EMAIL PROTECTED]> writes:
> Hey all yoh!
> Is there any "official" way to check whether or not
> a function returns a (specified) value?
Yes and no; R5RS has this to say:
If the value of an expression is said to be "unspecified," then t
Hello,
"Maciek Godek" <[EMAIL PROTECTED]> writes:
> As I ran into the problem, I quickly came with a workaround:
> (define unspecified (if #f #t))
> which allows to define the most basic predicates:
> (define (unspecified? x) (eq? x unspecified))
> (define (specified? x) (not (unspecified? x)))
>
>> but I find it kinda surprising that these are not available
>> by default in the system.
>
> They are not documented because they are not... specified. :-)
Yeah, I get that :D
> Actually, Guile defines `*unspecified*' and also provides
> `unspecified?', so all you need to define is `specified
Hello,
Boris Zbarsky <[EMAIL PROTECTED]> writes:
> I'm having a bit of a problem with using statprof. I checked it out
> from CVS (:pserver:[EMAIL PROTECTED]:/sources/guile
> CVSROOT, guile/guile-statprof module). I left it in the checkout
> tree, and am using GUILE_LOAD_PATH to point to the fi