Skip to content

Instantly share code, notes, and snippets.

@dyoo
Created February 23, 2013 21:28
Show Gist options
  • Save dyoo/5021430 to your computer and use it in GitHub Desktop.
Save dyoo/5021430 to your computer and use it in GitHub Desktop.
#lang racket
(provide foo%)
(define foo%
(class object%
(super-new)
(define (end-impl)
(displayln "not yet"))
(define/public (end)
(end-impl))
(define/public (start)
(displayln "start")
(set! end-impl (lambda () (displayln "end"))))))
(define f (new foo%))
(send f start)
(send f end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment