D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 486 - Writefln on null object should not trigger access error.
Summary: Writefln on null object should not trigger access error.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-08 01:48 UTC by Bill Baxter
Modified: 2020-09-03 22:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Bill Baxter 2006-11-08 01:48:14 UTC
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 Walter Bright 2006-11-25 04:03:23 UTC
Fixed DMD 0.175
Comment 2 Dlang Bot 2020-09-03 22:14:31 UTC
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