md5 hashing acting strangly?

Ary Borenszweig via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 16 10:40:22 PDT 2014


On 7/16/14, 10:22 AM, bearophile wrote:
> Kagamin:
>
>> Report for the problem when a temporary fixed-size array is assigned
>> to a slice, which is escaped.
>
> I think this is already in Bugzilla. But the point is: you can't solve
> this problem locally and with small means. You need a principled
> solution (or no solution at all, as now) of memory area lifetime
> management, as discussed in the scope threads.
>
> Bye,
> bearophile

When assigning a fixed size array to a slice, can't you just allocate 
memory and copy the data there (I mean, let the compiler do that in that 
case)? That would be safe, right?


More information about the Digitalmars-d-learn mailing list