Bug 486 – Writefln on null object should not trigger access error.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-08T01:48:14Z
Last change time
2020-09-03T22:14:31Z
Assigned to
Walter Bright
Creator
Bill Baxter
Comments
Comment #0 by wbaxter — 2006-11-08T01:48:14Z
Class o = null;
writefln(o);
This should just print out 'null' (or maybe "(Class)null" if that info is available) rather than triggering an access violation.
Comment #1 by bugzilla — 2006-11-25T04:03:23Z
Fixed DMD 0.175
Comment #2 by dlang-bot — 2020-09-03T22:14:31Z
dlang-community/dfmt pull request #506 "Regenerate line break hints after newline" was merged into master:
- 7b6b496d88526644f98f517f27bba57f581fcb52 by Eugen Wissner:
Regenerate line break hints after newline
Fixes #486.
https://github.com/dlang-community/dfmt/pull/506