Casting away immutability

Sergei Degtiarev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 2 07:00:07 PDT 2015


On Wednesday, 2 September 2015 at 04:19:24 UTC, lobo wrote:
> No, I think your design is unsafe because you're throwing away 
> type information and returning void[], then telling the 
> compiler not to worry about it.
It is unsafe, but this not my design but std.mmfile module in 
phobos. This is what I'm trying to improve. And there was no type 
information initially, this is raw allocated memory returned to 
user.




More information about the Digitalmars-d-learn mailing list