Restrictions in trait mixing
Posted
by Jeriho
on Stack Overflow
See other posts from Stack Overflow
or by Jeriho
Published on 2010-04-28T12:50:08Z
Indexed on
2010/04/28
12:53 UTC
Read the original article
Hit count: 272
I want to have classes that can mix only specified traits:
class Peter extends Human with Lawful with Evil
class Mag extends Elf with Chaotic with Neutral
Is in scala a way to do this?
© Stack Overflow or respective owner