Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #977 (closed wishlist: worksforme)

Opened 12 years ago

Last modified 12 years ago

Tango analogue to getchar and putchar

Reported by: Deewiant Assigned to: kris
Priority: normal Milestone: 0.99.6
Component: IO Version: trunk
Keywords: Cc:


Tango's IO has no analogue to C's getchar and putchar - fast functions for when you need or want only one byte of data at a time. Ideally they'd be members of InputStream? and OutputStream?, respectively, possibly only as overloads of read and write.

Overloading Print.print for char (or byte or ubyte) would be the biggest win, bypassing the unnecessary call to Layout.convert.

Having to do ungetting manually is fine, but using ubyte[1] arrays when reading input is really annoying.

Change History

03/14/08 01:53:05 changed by kris

  • status changed from new to assigned.

is TypedStream? perhaps what you're looking for?

03/14/08 09:39:22 changed by Deewiant

  • status changed from assigned to closed.
  • resolution set to worksforme.

Indeed it is. Never mind! *whistling*

03/14/08 10:04:35 changed by larsivi

  • milestone changed from 1.0 to 0.99.6.

03/14/08 20:53:40 changed by kris

ok, cool :)