On Saturday, 24 June 2017 at 08:08:33 UTC, ketmar wrote:
Meta wrote:
So I have no clue what I'm doing wrong. This is driving me
insane.
h. known $#^#$@^@%.
enum SymName = (&symbol).stringof[2..$]; // this, instead of
symbol.stringof
dirty hack, let's hope that DMD devs won't change `
On 6/24/17 3:53 AM, Meta wrote:
The code:
alias Response = Nullable!(string, "empty response (error)");
Response processMessage(string commandModule)(string message, bool
isCommand)
{
import std.meta;
import std.string;
import std.traits;
import command_uda;
mixin("
ketmar wrote:
Meta wrote:
So I have no clue what I'm doing wrong. This is driving me insane.
h. known $#^#$@^@%.
enum SymName = (&symbol).stringof[2..$]; // this, instead of
symbol.stringof
dirty hack, let's hope that DMD devs won't change `.toString()` output
(i.e. first two chars
Meta wrote:
So I have no clue what I'm doing wrong. This is driving me insane.
h. known $#^#$@^@%.
enum SymName = (&symbol).stringof[2..$]; // this, instead of
symbol.stringof
dirty hack, let's hope that DMD devs won't change `.toString()` output
(i.e. first two chars will alwa
ketmar wrote:
`.toString()`
toChars().
;-)
The code:
alias Response = Nullable!(string, "empty response (error)");
Response processMessage(string commandModule)(string message,
bool isCommand)
{
import std.meta;
import std.string;
import std.traits;
import command_uda;
mixin("import " ~ commandModule ~ ';');
b