Wow, thanks very much anonymous. I did try that as a solution but
stupid me was using an enum rather than an alias for the
"shortcut" functions.
Been staring at the problem for so long that I couldn't see the
problem right in front of me!
Appreciate the help greatly. Code now looks elegant a
Hi guys,
I was hoping some of you more experience D guys could educate me
on this one.
Given the following code:
///
// Template function
bool shouldValue(alias operation, string description, E, V)(lazy
E expression, V value, string name="Value", string file =
__FILE__, typeof(__LINE_
It's a bit hard to know where to start here. It's not obvious
from your code what you are trying to achieve.
In essence, you do have a circular reference as Base has
functions that use a types A and B which are derived from the
Base. I don't see how the complier could be asked to resolve this.
What version of dub are you using?
I can certainly work with that. Thank you very much! (and for
pointing out my typo in the example)
Hi guys,
I'm a former C++ developer and really enjoying working with D
now. I have a question that I hope some of you may be able to
answer.
class Parent {
@property string typeName() {
return typeof(this).stringof;
}
}
class Child : Parent {
}
void main() {
auto p = new Parent;