[fpc-devel] New language feature suggestion (probably not existing in Delphi)
Max Vlasov
max.vlasov at gmail.com
Fri Nov 26 20:08:32 CET 2010
On Fri, Nov 26, 2010 at 9:45 PM, Nikolay Nikolov <
nickysn at users.sourceforge.net> wrote:
> On 11/26/2010 10:42 AM, Max Vlasov wrote:
>
>>
>> Is anyone aware of similar concept in any other OOP language?
>>
> Yes, C++ has it:
> http://duramecho.com/ComputerInformation/WhyHowCppConst.html
>
> It's true that it's a little bit messy, but that's pretty much the norm
> with everything in C++ ;-)
>
>
Thanks, Nikolay, it's interesting information, when I tried to search before
I posted, I didn't use "const", only "read only" so did not find anything. I
already see that it never would be implemented the similar way since in
contrary to C++ const objects in pascal already can do whatever they want.
Also searching now, found a post
http://community.freepascal.org:10000/bboards/message?message_id=256912&forum_id=24082
Where was question about const, but it seems that primary discussion was
about optimization, not preventing from occasional modification.
Max Vlasov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20101126/83679e0d/attachment.html>
More information about the fpc-devel
mailing list