Translating C const

Simen Kjaeraas simen.kjaras at gmail.com
Tue May 15 22:35:10 PDT 2012


On Tue, 15 May 2012 21:58:46 +0200, Jacob Carlborg <doob at me.com> wrote:

> On 2012-05-15 21:50, Ali Çehreli wrote:
>
>> Not possible in D. D's const is transitive. If b is const, then what it
>> points to is also const.
>>
>> Ali
>>
>
> Then it would be best to not declare that as const?
>

That depends. Will the contents be modified?


More information about the Digitalmars-d-learn mailing list