Jan Sinschek
unread,Jun 15, 2013, 11:18:47 AM6/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to newspeak...@googlegroups.com
Hi,
if anyone can spare a moment: can I currently mix something in and have the resulting class contain the constructor of the "superclass"?
I know that
class A a: a = Other a: a
can be mixinApply:-ed to
Another a: a
and yield what is (for all I know) equivalent to
class A a: a = Another a: a
This does not work if my mixin is supposed to be applied to classes with different constructors.
Is there anything right now for the case where not extra parameters are supplied by my mixin A, so that
class A = ()() mixed-into {B,C,D} will yield s class with the constructors that B, C, or D have had, respectively?
(Sorry that I won't be able to respond again questions for over a day.)
Cheers,
jan