assume, assert, enforce, @safe

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 31 08:55:04 PDT 2014


Daniel Gibson:

>>    asm {"" : : "m" 
>> (*cast(typeof(password[0])[9999999]*)password.ptr); }
>
> inline asm is not portable

See:
https://d.puremagic.com/issues/show_bug.cgi?id=10661


> C11 defines a memset_s which is guaranteed not to be optimized 
> away..
> that's 9 years after that bugreport and will probably never be 
> supported by MSVC (they don't even support C99).

See:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366877%28v=vs.85%29.aspx

Bye,
bearophile


More information about the Digitalmars-d mailing list