[plt-scheme] Swindle :type keyword accepts (or ...)

From: Eli Barzilay (eli at barzilay.org)
Date: Fri May 7 09:11:11 EDT 2004

On May  7, Paulo Matos wrote:
> Hi,
> 
> Can I do this:
> (defclass <foo> ()
> 	(x :type (or <number> <string>) ...)
> 	...)
> 
> Can I expect swindle to accept only numbers or strings as legal
> values to x?

No for both.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.