From slices to perfect imitators: opByValue

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu May 8 09:10:28 PDT 2014


On 05/08/2014 06:02 PM, monarch_dodra wrote:
>
> If you have const data referencing mutable data, then yes, you can cast
> away all the const you want, but at that point, it kind of makes the
> whole "const" thing moot.

This is not guaranteed to work. I guess the only related thing that is 
safe to do is casting away const, but then not modifying the memory.


More information about the Digitalmars-d mailing list