On Thursday, 15 September 2016 at 01:40:50 UTC, Anonymouse wrote:
You mean, the literal string name of the original symbol you
passed as an alias? If so then you want the .stringof property.
void main () {
int first;
bool second;
string third;
mixin
On Thursday, 15 September 2016 at 00:15:42 UTC, jsako wrote:
I was making a quick mocking infrastructure for internal mocks
so I wouldn't have to pass in objects to constructors all the
time and came up with this:
[...]
This works great as long as there is only one mock object. I
thought
I was making a quick mocking infrastructure for internal mocks so
I wouldn't have to pass in objects to constructors all the time
and came up with this:
[code]
mixin template internalMockRig(alias _var, string _varName, alias
_varStandard, alias _varMock) {
version(unittest)