Re: little question once again

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sat, 25 Sep 1999 22:37:06 -0400, Irv Mullins <irv at ELLIJAY.COM> wrote:
>constant pi = 3.0      -- that's wrong, but I can change it!
>
>Irv

Irv

That is true in Euphoria because Euphoria doesn't have real constants.

In C or C++ when you try to change a constant's value you will get a

run-time error. In C++ you can only explicitly override the constant by

using the const_cast operator.

Bernie

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu