D_Parser
D_Parser copied to clipboard
Failure to parse protected inner struct of class Logger in std.experimental.core
Auto-complete doesn't show any fields of payload
in this code:
import std.experimental.logger;
class FunkyLogger : Logger
{
this(LogLevel lv)
{
super(lv);
}
override void writeLogMsg(ref LogEntry payload)
{
payload.|
}
}
This is because LogEntry is marked as protected. Removing the 'protected' attribute will show payload's items properly. Anyway..I hope this won't introduce too many new states.
Your first sentence sounds like "this is a bug in Logger, it uses the wrong protection attribute" and your second sentence sounds like "this sucks, but I'm going to fix it". I take it your 2nd sentence overrides the first one.
Nah, this only was a note to myself and how to fix it