Anatoli Tubman wrote: > I once wrote a C++ template library that did exactly that. Arbitrary units, > rational exponents -- you can have (m^(3/2)/kg^(5/16)) dimensioned value. > All at compile time, without runtime checking whatsoever. Is there any sense physically in rational exponents? If not, we could use this extra information for less permissive type checking, for example only allowing a square root from an argument that has only even exponents. (Cayenne doesn't happen to have c*n-patterns?) Christian Sievers
- Units of measure Tom Pledger
- Re: Units of m... Andreas Rossberg
- RE: Units of m... Simon Peyton-Jones
- Re: Units of m... D. Tweed
- Re: Units of m... a disembodied voice emerging from the chaos of reality
- Re: Units of m... Anatoli Tubman
- Re: Units of m... Andreas Rossberg
- Re: Units of m... Herbert Graeber
- Re: Units of m... Anatoli Tubman
- Re: Units of m... Christian Sievers
- Re: Units of m... Lennart Augustsson
- Re: Units of m... Christian Sievers
- Re: Units of m... Jonathan King
- Re: Units of m... Tom Pledger
- Re: Units of m... Anatoli Tubman