Bug 3297 – readln example doesn't compile

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2009-09-03T14:07:00Z
Last change time
2015-06-09T01:28:07Z
Assigned to
andrei
Creator
Jesse.K.Phillips+D

Comments

Comment #0 by Jesse.K.Phillips+D — 2009-09-03T14:07:52Z
The example code for std.stdio.readln does not compile. By changing 'readln(stdin...' to 'stdin.readln(...' the code below compiles: import std.stdio; void main() { char[] buf; while (stdin.readln(buf)) write(buf); return 0; }
Comment #1 by andrei — 2009-09-03T15:57:37Z
Coming with 2.033.