www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3725] New: Add united type to standard library

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3725

           Summary: Add united type to standard library
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: shro8822 vandals.uidaho.edu


--- Comment #0 from BCS <shro8822 vandals.uidaho.edu> 2010-01-19 22:26:28 PST
---
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).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3725


Witold Baryluk <baryluk smp.if.uj.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |baryluk smp.if.uj.edu.pl


--- Comment #1 from Witold Baryluk <baryluk smp.if.uj.edu.pl> 2010-01-20
08:00:35 PST ---
Is your type support fractional exponents of units?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3725



--- Comment #2 from BCS <shro8822 vandals.uidaho.edu> 2010-01-20 13:01:21 PST
---
(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) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3725



--- Comment #3 from BCS <shro8822 vandals.uidaho.edu> 2010-08-24 16:14:14 PDT
---
I have undated it to use 4 space tabs and inserted a Boost licence
deceleration.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 24 2010
prev sibling parent reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3725


Jonathan M Davis <jmdavisProg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg gmail.com


--- Comment #4 from Jonathan M Davis <jmdavisProg gmail.com> 2010-08-24
17:05:22 PDT ---
Oh my. Was it going too fast? ;)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 24 2010
parent BCS <none anon.com> writes:
 Oh my. Was it going too fast? ;)
 
: -- ... <IXOYE><
Aug 24 2010