Welcome to Web-News
A Web-based News Reader
Subject Newbie confused: What is purpose of mixins?
From Lynn Allan <l_d_allan@adelphia.net>
Date Sat, 4 Sep 2004 07:01:45 -0600
Newsgroups digitalmars.D

<alert comment="newbie">

I am unsure what problem or purpose "mixins" are designed to address. I've
read the D specs and looked over numerous newsgroup postings. I've used C++
templates and multiple inheritance, and Java interfaces. Mixins seem related
to these concepts, but it hasn't registered in my brain why I would use
mixins. I can more or less grasp the syntax of declaring mixins with the
example code, but I don't understand their purpose.

Are their previous postings or links to articles to give a fuller
explanation to this ... in comprehensible English? (rather than excerpts
from Phd papers ... "On one hand, the ontologies we develop during domain
analysis tend to involve classes that inherit from multiple parents.")

Could the D spec page for mixins have links to such information about the
purpose of mixins?

</alert>



Recent messages in this thread
 
-# Newbie confused: What is purpose of mixins? (Current message) Lynn Allan 04-Sep-2004 09:01 am
.-# Re: Newbie confused: What is purpose of mixins? Chris 04-Sep-2004 10:16 am
.|\# Re: Newbie confused: What is purpose of mixins? Lynn Allan 04-Sep-2004 12:11 pm
.|# Re: Newbie confused: What is purpose of mixins? Deja Augustine 04-Sep-2004 12:05 pm
.|# Re: Newbie confused: What is purpose of mixins? Jarrett Billingsley 04-Sep-2004 01:37 pm
.\# Re: Newbie confused: What is purpose of mixins? Ben Hinkle 04-Sep-2004 02:25 pm