const or readonly
Hi,
can someone please enlighten me on the difference between a "const" and a
"readonly" declaration?
TIA,
Axel Dahmen
.
Relevant Pages
- Re: Constant array of strings
... But the declaration of the constant is still not correct.. ... Prev by Date: ... (comp.lang.pascal.delphi.misc) - Re: Compress captured videoframe
... > In MSDN I found: ... You have the declaration of ICM_USER, you want the declaration of DRV_USER: ... Const ICM_USER As Long = DRV_USER ... Prev by Date: ... (microsoft.public.vb.winapi.graphics) - Re: Re-use the argument?
... using of const variables when it knows they're no longer needed. ... a trivial calculation into three separate statements. ... function parameter as an ordinary modifiable object. ... anyone who looks at the function declaration. ... (comp.lang.c) - Re: Simple question on Pointers
... Such a member is, of course, bad idea. ... const SomeClass, this method exhibits undefined behavior, but you won't ... your completely unambiguous declaration that m_iMember is, in fact, constant ... (microsoft.public.vc.language) - Re: reference trouble in double[3] vs. double*
... > class Triplet { ... You should have a declaration in the commented-out section like this: ... Please note that a const member function cannot return a non-const ... If you need to provide non-const access too, ... (comp.lang.cpp) |
|