Andreas Rottmann wrote:

> You get terminology totally wrong here. As already said, Lisp is
> stronger typed than C, but C is statically typed, whereas Lisp is
> dynamically typed. In Lisp (or Scheme), all variables have types:
> 
> (define foo #(1 2 3))
> (vector? foo) => #t
> (boolean? foo) => #t

Hmm.. weird Scheme you're using here.
Normally you have to quote the vector (see R5RS, 6.2.6) because it is
not self-evaluating, and boolean? should not return true on vectors (6.3.1).

I get (on scheme48):

(define foo '#(1 2 3))
(vector? foo)  => #t
(boolean? foo) => #f


mkb.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to