chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] are values 1st-class?


From: Dan
Subject: [Chicken-users] are values 1st-class?
Date: Wed, 9 Aug 2006 14:42:33 -0700 (PDT)

(define (values->list v)
  (call-with-values 
    (lambda () v) 
    (lambda x x)))

(values->list (values 1 2))

Returns (1 2) in SISC and Guile, (1) in Chicken. Are
values supposed to be 1st-class objects? If not, I'll
have to rewrite values->list as a macro -- right?

-- Dan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]