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.
- Forcing compile time evaluation of pure functions scarrow
- Re: Forcing compile time evaluation of pure functions scarrow
- Re: Forcing compile time evaluation of pure functions bearophile
- Re: Forcing compile time evaluation of pure functi... scarrow
- Re: Forcing compile time evaluation of pure functions Simen Kjaeraas