[plt-scheme] Composing mixins

From: Dave Gurnell (d.j.gurnell at gmail.com)
Date: Fri May 22 11:07:25 EDT 2009

Hi all,

Is there anything special about a mixin that distinguishes it from a  
regular procedure, apart from the fact that it operates on classes? In  
other words, if I compose two mixins like this:

(define b<%> (interface ()))
(define c<%> (interface ()))

(define mixin-ab (mixin ()     (b<%>) (super-new)))
(define mixin-bc (mixin (b<%>) (c<%>) (super-new)))

(define mixin-ac (compose mixin-bc mixin-ab))

is mixin-ac actually a mixin?


-- Dave

Posted on the users mailing list.