PasteRack.org
Paste # 71671
2020-02-09 06:16:29

Fork as a new paste.

Paste viewed 250 times.


Embed:

  1. #lang racket
  2.  
  3. (define foo% (class object%
  4.                    (super-new)
  5.                    (define/public plus-one (curry + 1))))

=>

eval:2:0: class: bad form for method definition

  at: (curry + 1)

  in: (class object% (super-new) (define/public plus-one

(curry + 1)))