Skip to content

Commit

Permalink
D structs are not always POD.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Dec 29, 2012
1 parent 1fcf488 commit e0a731a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion glossary.dd
Expand Up @@ -174,7 +174,6 @@ void test()
does not have virtual functions, does not inherit,
has no destructor,
and can be initialized and copied via simple bit copies.
D structs are POD.
)

$(DT $(LNAME2 predicate, Predicate)) $(DD A function or
Expand Down
3 changes: 0 additions & 3 deletions struct.dd
Expand Up @@ -6,9 +6,6 @@ $(SPEC_S Structs & Unions,
Any C struct can be exactly represented as a D struct, except non-static
$(LINK2 #nested, function-nested D structs) which access the context of
their enclosing scope.
In C++ parlance, a D struct is a
$(DPLLINK glossary.html#pod, POD (Plain Old Data)) type,
with a trivial constructor and destructor.
Structs and unions are meant as simple aggregations of data, or as a way
to paint a data structure over hardware or an external type. External
types can be defined by the operating system API, or by a file format.
Expand Down

0 comments on commit e0a731a

Please sign in to comment.