const assignments problem again

Kagamin spam at here.lot
Sun Aug 7 02:49:58 PDT 2011


bearophile Wrote:

> - You can't use "auto" there, so if the type of e.x changes, you have to change the foo type manually (double.min is replaceable with typeof(e.x).min).

This is a bad idea too. The code assumes the values are double. If this assumption is not true, the code is broken.


More information about the Digitalmars-d mailing list