Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-29 Thread BCS
Hello bearophile, BCS: Because you complained I added the other two, but because I think they are silly I make it so you can switch them on and off (they are placed under a "version(FullSI)"). What's the definition of "silly SI units"? Base SI units that are or can be defined in terms of

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-29 Thread bearophile
BCS: > Because you complained I added the other two, but because I think they are > silly I make it so you can switch them on and off (they are placed under > a "version(FullSI)"). What's the definition of "silly SI units"? Bye, bearophile

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-28 Thread BCS
Hello SiegeLord, BCS Wrote: Also all of the imperial units that I don't care about, as well as the more obscure physical units. My lib has every SI unit I could fine and all the units I found that I recognised. The current vertion can have a new unit added as a single line of code. SI has

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-20 Thread BCS
Hello SiegeLord, Avogadro's number is not know precisely, and because of that very reason the unit of mole is used. It is not even known precisely enough to fill out the 15 digits of precision that double type provides, which just makes it unacceptable as a hard-coded constant (unlike say, pi).

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-20 Thread SiegeLord
Actually, nevermind on the precision arguments, precision doesn't work like that. There may be other arguments for natural units that I can't think of now, though... -SiegeLord

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-20 Thread SiegeLord
Simen kjaeraas Wrote: > On Wed, 20 Jan 2010 03:47:58 +0100, BCS wrote: > > > Hello SiegeLord, > > > >> BCS Wrote: > >> > Also all of the imperial units that I don't care about, as well as > the more obscure physical units. > > >>> My lib has every SI unit I could fine and all the

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-20 Thread Simen kjaeraas
On Wed, 20 Jan 2010 03:47:58 +0100, BCS wrote: Hello SiegeLord, BCS Wrote: Also all of the imperial units that I don't care about, as well as the more obscure physical units. My lib has every SI unit I could fine and all the units I found that I recognised. The current vertion can have a

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-20 Thread Simen kjaeraas
On Wed, 20 Jan 2010 03:47:58 +0100, BCS wrote: Hello SiegeLord, BCS Wrote: Also all of the imperial units that I don't care about, as well as the more obscure physical units. My lib has every SI unit I could fine and all the units I found that I recognised. The current vertion can have a

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-19 Thread BCS
Hello Andrei, SiegeLord wrote: BCS Wrote: Also all of the imperial units that I don't care about, as well as the more obscure physical units. My lib has every SI unit I could fine and all the units I found that I recognised. The current vertion can have a new unit added as a single line of

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-19 Thread BCS
Hello SiegeLord, BCS Wrote: Also all of the imperial units that I don't care about, as well as the more obscure physical units. My lib has every SI unit I could fine and all the units I found that I recognised. The current vertion can have a new unit added as a single line of code. SI has

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-19 Thread Andrei Alexandrescu
SiegeLord wrote: BCS Wrote: Also all of the imperial units that I don't care about, as well as the more obscure physical units. My lib has every SI unit I could fine and all the units I found that I recognised. The current vertion can have a new unit added as a single line of code. SI has 7

Re: unit type for addition to std lib [was Re: D Language 2.0]

2010-01-19 Thread SiegeLord
BCS Wrote: > > Also all of the imperial units that I don't care about, as > > well as the more obscure physical units. > > My lib has every SI unit I could fine and all the units I found that I > recognised. > The current vertion can have a new unit added as a single line of code. SI has 7 bas

unit type for addition to std lib [was Re: D Language 2.0]

2010-01-19 Thread BCS
First: I've updated my units type to d2.0 and cleaned it up a bit. http://www.dsource.org/projects/scrapple/browser/trunk/units/si2.d I'm offering this for inclusion in Phobos and/or Tango and am willing to license it as needed to make that work. If anyone shows any interest at all I'll star