Bug 9237 – add __traits(isPOD, ...)

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-28T16:07:00Z
Last change time
2013-01-04T14:30:28Z
Assigned to
andrej.mitrovich
Creator
bugzilla
Blocks
9099

Comments

Comment #0 by bugzilla — 2012-12-28T16:07:18Z
The definition of POD (Plain Old Data) is rather subtle, and very hard to determine with existing traits. It also may change. Therefore, to make sure it is in sync with the compiler's view of it, adding a trait that sets its value based on StructDeclaration::isPOD() makese sense.
Comment #1 by andrej.mitrovich — 2012-12-28T16:39:54Z
Comment #2 by github-bugzilla — 2012-12-29T13:25:18Z
Comment #3 by github-bugzilla — 2012-12-29T13:26:14Z
Commit pushed to staging at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5781626d3cdd8ec29216047a510decf6919e2562 Merge pull request #1421 from AndrejMitrovic/Fix9237 Issue 9237 - Add isPOD trait
Comment #4 by github-bugzilla — 2013-01-04T14:30:28Z