Bug 3725 – Add units type to standard library

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-01-19T22:26:28Z
Last change time
2018-05-16T14:53:28Z
Keywords
bootcamp
Assigned to
No Owner
Creator
BCS

Comments

Comment #0 by shro8822 — 2010-01-19T22:26:28Z
After some interest was expressed ( http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=104904 ) for having a type that keeps track of units (e.g. seconds, feet, grams, etc.) I cleaned up my version of this. http://www.dsource.org/projects/scrapple/browser/trunk/units/si2.d http://www.dsource.org/projects/scrapple/browser/trunk/units/rational.d I'm willing to license it however is needed to get it added to Phobos (and I'll make the same offer for tango).
Comment #1 by witold.baryluk+d — 2010-01-20T08:00:35Z
Is your type support fractional exponents of units?
Comment #2 by shro8822 — 2010-01-20T13:01:21Z
(In reply to comment #1) > Is your type support fractional exponents of units? yes. the unittest at the bottom uses "Stress Intensity", an alias for pressue*sqrt(distance)
Comment #3 by shro8822 — 2010-08-24T16:14:14Z
I have undated it to use 4 space tabs and inserted a Boost licence deceleration.
Comment #4 by issues.dlang — 2010-08-24T17:05:22Z
Oh my. Was it going too fast? ;)
Comment #5 by lt.infiltrator — 2015-11-16T02:20:39Z
Are you still interested in doing this? Do you want to put in a DIP for it then?
Comment #6 by andrei — 2016-10-14T01:24:30Z
Large project, will assign to bootcamp in case someone is interested.
Comment #7 by greeenify — 2016-12-22T17:15:20Z
Comment #8 by dmitry.olsh — 2018-05-16T14:40:49Z
Do we absolutely need to list every potential library addition in Bugzilla? Also there is nothing "bootcamp" about it - it's a huge project with dubious prospects of getting it into Phobos. Basically getting anything into Phobos right now is non-trivial and would rather start with a few years in DUB. TL;DR: Use DUB packages, there are even a few to pick from in the last comment.
Comment #9 by andrei — 2018-05-16T14:53:28Z
Agreed.