-
-
Notifications
You must be signed in to change notification settings - Fork 742
fix Issue 14940: Can't call logger with more complex objects #3582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ |
@@ -1799,8 +1799,7 @@ Params: | |||
_isNull = false; | |||
} | |||
|
|||
template toString() | |||
{ | |||
template toString() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: opening brace on own line, please.
@quickfur @Hackerpilot done |
While this fixes the specific issue, isn't the deeper problem that |
@mathias-baumann-sociomantic not really the OutputRange delegate passed to Nullable is not @safe and as this delegate is called by toString it can not be @safe |
Code duplication looks a bit worrying here. Can't dmd infer attributes for delegate here? (considering |
@mihails-strasuns-sociomantic no it didn't making the delegate a template parameter also didn't work. The alias this was then used instead of the toString |
Auto-merge toggled on |
Puttin aside the general problem with delegates, merging this |
fix Issue 14940: Can't call logger with more complex objects
thanks |
https://issues.dlang.org/show_bug.cgi?id=14940