[plt-dev] abstract methods
Actually I don't think so. For that, you'd need to add
class/abstract
-- Matthias
On Apr 23, 2010, at 8:40 AM, Robby Findler wrote:
> Except it should be an error when instantiating the class, not when
> calling the method, right?
>
> Robby
>
> On Fri, Apr 23, 2010 at 7:34 AM, Matthias Felleisen
> <matthias at ccs.neu.edu> wrote:
>>
>> Everyone adds this syntax rule to OO Racket programs:
>>
>>> (define-syntax-rule
>>> (define/abstract (x y ...))
>>> (define/public (x y ...) (error 'x "abstract method needs to be
>>> instantiated")))
>>
>> Could some kind current maintainer of class.ss add this rule and
>> add the
>> proper syntax magic?
>>
>> Thanks -- Matthias
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-dev
>>