Forcing compile time evaluation of pure functions

scarrow scarrow at cyberverse.com
Thu Jul 14 19:35:32 PDT 2011


I think invoking a template to call the pure function (StaticEval!(Hash("foo"))
isn't much different from StaticHash!("foo").  You still have to explicitly know
whether you're dealing with a compile time constant or not.  I'd really like to
figure out how to have Hash("foo") be static and Hash(variable) be dynamic.


More information about the Digitalmars-d-learn mailing list