[sv-ec] struct as a container for holding data type...

From: danielm <danielm_at_.....>
Date: Tue Mar 18 2008 - 06:54:37 PDT
Chapter 7.25 Classes and structures enumerates differences between classes
and structures.
This chapter do not mention about allowed members of class vs struct.
Class item can be a method, typedef, other class.
 
Struct members are restricted to be : 

{ attribute_instance } [random_qualifier] data_type_or_void
list_of_variable_decl_assignments ;

This restriction was made on purpose? 

If so then it should be enumerate in 7.25 becasue struct encapsulating
abilities are restricted in compare to class, while this chapter suggest
that common feature of class and strutc are encapsulation mechanism.

 
DANiel

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Mar 18 07:00:15 2008

This archive was generated by hypermail 2.1.8 : Tue Mar 18 2008 - 07:01:07 PDT