title: Usage preference between a struct and a class in D language
body: <p>When should I define a type as a struct or as a class?</p>
  
  <p>I know that struct are value types while classes are reference types. So I wonder, for example, should I define a stack as a struct or a class?</p>