Where/why would one use a typed constant vs. a variable.  i.e.

const
        myConst : double = 2.0*Pi;

var
        myVar : double = 2.0*Pi;

It seems to me the typed constant is superfluous and can potentially lead to bugs.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to