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

Ticket #1257 (closed wishlist: wontfix)

Opened 16 years ago

Last modified 14 years ago

Add the tango.text.Util LineFruct opApply variant that also has a linecount index

Reported by: keinfarbton Assigned to: kris
Priority: normal Milestone: 1.0
Component: Core Functionality Version: 0.99.7 Dominik
Keywords: Cc:

Description

This exists in line 1239:

int opApply (int delegate (inout T[] line) dg)

would be nice to also have this version:

int opApply (int delegate (uint linecount, inout T[] line) dg)

Change History

08/19/08 16:44:08 changed by kris

  • status changed from new to assigned.
  • priority changed from major to normal.
  • type changed from enhancement to wishlist.
  • milestone changed from 0.99.8 to 1.0.

11/18/09 03:41:14 changed by kris

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

doing so would mean fully duplicating the code, or pay the cost of another indirect call. We'd also be obliged to do the same for all the other fructs too, so I'd rather not do this. One option is to wrap the text in an Array, and pass it to io.stream.Lines instead (that has optional an token count)