@safe leak fix?

grauzone none at example.net
Wed Nov 11 14:47:44 PST 2009


Walter Bright wrote:
> grauzone wrote:
>> In this case, the semantic difference between safe and unsafe 
>> functions will cause trouble, and you'd eventually end up imposing the 
>> "safe" semantics upon unsafe functions.
> 
> May be.

Returning a slice to a local static array would be fine in safe mode, 
but lead to silent corruption in "unsafe" mode. I think everyone would 
assume that, if something works in safe mode, it should also work in 
unsafe mode.

So, it's really a "must", or is there some other way around it?



More information about the Digitalmars-d mailing list