digitalmars.D.dtl - complex template?
- Ivan Senji (6/6) Jun 01 2004 I understand(or accept) the reasons why having a built in
- Ben Hinkle (4/10) Jun 01 2004 That would be nice. Also a Rational!(int), Rational!(long), Rational!(In...
- Daniel Horn (3/19) Jun 01 2004 BigRational does use a template :-) and it is a struct
I understand(or accept) the reasons why having a built in complex type in the language is better but there are times when someone will need Complex!(Int) or Complex!(BigRational) and a general complex template should be in the standard library, it doesn't make sence that everyone write's his own version.
Jun 01 2004
Ivan Senji wrote:I understand(or accept) the reasons why having a built in complex type in the language is better but there are times when someone will need Complex!(Int) or Complex!(BigRational) and a general complex template should be in the standard library, it doesn't make sence that everyone write's his own version.That would be nice. Also a Rational!(int), Rational!(long), Rational!(Int) template would also be nice. I haven't looked at BigRational - does it use a template?
Jun 01 2004
BigRational does use a template :-) and it is a struct and I have tested it woth long and Int (biginteger) Ben Hinkle wrote:Ivan Senji wrote:I understand(or accept) the reasons why having a built in complex type in the language is better but there are times when someone will need Complex!(Int) or Complex!(BigRational) and a general complex template should be in the standard library, it doesn't make sence that everyone write's his own version.That would be nice. Also a Rational!(int), Rational!(long), Rational!(Int) template would also be nice. I haven't looked at BigRational - does it use a template?
Jun 01 2004