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

Ticket #523 (closed enhancement: wontfix)

Opened 17 years ago

Last modified 17 years ago

Plain Text Protocol

Reported by: xammy Assigned to: kris
Priority: normal Milestone:
Component: IO Version:
Keywords: I/O protocol plain text ascii scanf Cc: larsivi, sean

Description

As said in the Wish List Thread, I'd like to have a plain text protocol (for C-users which have their files written via printf and read via scanf).

Here's my current one, already documented as well as unittests included - in my opinion ready for inclusion in Tango. You (the Tango team) of course have the permission to modify and distribute, etc.

Attachments

PlainTextProtocol.d (19.6 kB) - added by xammy on 08/28/07 21:51:29.
Updated version which generates smaller object file

Change History

06/23/07 12:09:51 changed by xammy

I forgot to set "module" correctly to "tango.io.protocol.PlainTextProtocol?" - If you intend to include it, don't forget to change this.

08/28/07 06:48:40 changed by kris

  • status changed from new to assigned.

thanks!

Will take a look, and pass along to the others too

08/28/07 07:25:57 changed by kris

  • cc set to larsivi, sean.

08/28/07 20:40:36 changed by xammy

I just recognized that there is a problem with my design. It uses templates very much, so my object file is 53 Kb huge ;) I'm going to put some more switch statements instead and post it again.

08/28/07 21:51:29 changed by xammy

  • attachment PlainTextProtocol.d added.

Updated version which generates smaller object file

08/28/07 21:53:54 changed by xammy

While changing some things from template code to switch statements, I thought of some refactoring stuff - If you'd like to have some things added or don't like some of this code - just give me a hint and I'll try to do it.

08/30/07 18:56:14 changed by kris

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

Placed into tango.scrapple for now. Hope that's ok?

09/08/07 21:20:14 changed by xammy

Yep, this is okay. I'm perfectly happy :)