Hello all,

I'm trying to use a std.digest, namely MD5 and sHA, as a template parameter like so:

auto x = new MyDigestWrapper!MD5;

The compiler (dmd2) then throws two error messages at me which puzzle me.

phobos/std/traits.d 554: Error: forward reference of variable parentPrefix, and phobos/std/traits.d 727: Error: template instance std.traits.fqnSym!(const(MyDigestWrapper!(MD5))) error instantiating ...std/traits.d 462: inst. from here: fqn!Type(const(MyDigestWrapper!(MD5)), false, false, false, false) mydigestwrapper.d-mixin-283 310: inst. from here: fullyQualifiedName!(const(MyDigestWrapper!(MD5)))
app.d 211: inst. from here MyDigestWrapper!(MD5)

1. What's going on ?
2. How is that fqnSym involved ?
3. What is parentPrefix ?
4. What is this forward ref, and why ?
5. How can I review mydigestwrapper.d-mixin-283 ?

Thanks for your time

Reply via email to