[plt-scheme] abstract methods/classes

From: Robert Bruce Findler (robby at cs.uchicago.edu)
Date: Sat Mar 22 00:09:15 EST 2003

I typically just write methods that only raise exceptions.

(class ...
    (define/public (m x) (error 'm "abstract")))

Robby

On Friday, March 21, 2003, at 10:30  PM, Neil W. Van Dyke wrote:

>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Is there a way to do abstract methods in with the class.ss object
> system?
>
> I suppose one way would be to let class impose an interface constraint
> upon *sub*classes that is enforced at instantiation time.
>
> -- 
>                                              
> http://www.neilvandyke.org/
>



Posted on the users mailing list.