Clay language

"Jérôme M. Berger" jeberger at free.fr
Thu Dec 30 11:15:30 PST 2010


Andrei Alexandrescu wrote:
> Many good examples do prove a ton though. Just off the top of my head:
> 
> - complex numbers
	Multiplication and division are different from each other and from
addition and subtraction.

> - checked integers
> - checked floating point numbers
> - ranged/constrained numbers
	More or less the same case, so I'm not sure that they make three.
Other than that agreed.

> - big int
> - big float
> - matrices and vectors
> - dimensional analysis (SI units)
> - rational numbers
> - fixed-point numbers
	For all of those, multiplication and division are different from
each other and from addition and subtraction.

	So what your examples do is actually prove *Steven's* point: most
of the time, the code is not shared between operators.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101230/f85239b9/attachment.pgp>


More information about the Digitalmars-d mailing list