PDA

View Full Version : Constrain children's type


3.14
04-28-2004, 12:22 PM
is it possible?
i created two class, AA and BB which extend view, and i want to have only BB instances in an AA instance: is there a smart way to do it ?
thx

antun
04-28-2004, 02:04 PM
Are you asking if there is a way to add instructions for the compiler to validate which tags are allowed where?

-Antun

3.14
04-28-2004, 02:19 PM
yep