@safe leak fix?

Walter Bright newshound1 at digitalmars.com
Thu Nov 12 11:01:52 PST 2009


dsimcha wrote:
> == Quote from Don (nospam at nospam.com)'s article
>> There are definitely functions which are dangerous if you pass them
>> invalid parameters. ie, "use at own risk" -- any function which uses
>> them needs to add its own tests. I think something which implies "you
>> should think before you use this function" is reasonable.
>> I don't care at all what the name is, however. @system would be OK.
> 
> Yeah, and sometimes the functions that are unsafe when passed invalid parameters
> aren't obvious.

Also, even safe functions cannot be guaranteed safe if they are passed 
garbage as arguments.



More information about the Digitalmars-d mailing list