Thread overview
[Issue 3725] New: Add united type to standard library
Jan 20, 2010
BCS
Jan 20, 2010
Witold Baryluk
Jan 20, 2010
BCS
Aug 24, 2010
BCS
Aug 25, 2010
Jonathan M Davis
Aug 25, 2010
BCS
January 20, 2010
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: -------
January 20, 2010
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: -------
January 20, 2010
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: -------
August 24, 2010
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: -------
August 25, 2010
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: -------
August 25, 2010
> Oh my. Was it going too fast? ;)
> 
-- 
... <IXOYE><