[Issue 13988] New: simplify/cleanup rt.lifetime
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 15 12:40:16 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13988
Issue ID: 13988
Summary: simplify/cleanup rt.lifetime
Product: D
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
The module suffers a lot from bad code. It's mildly complex but due to missing
abstractions/separations the complexity is spread throughout code of completely
different concerns. This makes it hard to change/review so people tend to stuff
new code into the existing mess.
3 concrete points:
Reduce code duplication for different branches that simply handle different
array lengths.
Turn the implicit smallpad, medpad, largepad layouts into structs and use those
(combined with casts) to avoid all the void* arithmetic.
Turn the block info cache into a struct.
--
More information about the Digitalmars-d-bugs
mailing list