Purity and C functions

Walter Bright newshound1 at digitalmars.com
Wed Jan 7 20:12:17 PST 2009


Denis Koroskin wrote:
> I wonder what results you may get using "extern(C) pure int rand();" 
> though. :p

If you declare as pure functions that are impure, you'll get undefined 
behavior.



More information about the Digitalmars-d mailing list