[D-runtime] The @safe-ness of core.bitop

Lars Tandle Kyllingstad lars at kyllingen.net
Sat Jun 15 04:00:30 PDT 2013


Hi!

I just noticed that btc(), btr() and bts() in core.bitop are marked as 
@safe.  But are they really?  Couldn't using the wrong 'bitnum' easily 
cause memory corruption?

Lars


More information about the D-runtime mailing list