Unspecified?

2008-11-14 Thread Maciek Godek
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

Issues using statprof (no samples taken)

2008-11-14 Thread Boris Zbarsky
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

Re: Unspecified?

2008-11-14 Thread Andy Wingo
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

Re: Unspecified?

2008-11-14 Thread Ludovic Courtès
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))) >

Re: Unspecified?

2008-11-14 Thread Maciek Godek
>> 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

Re: Issues using statprof (no samples taken)

2008-11-14 Thread Ludovic Courtès
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