Does D need a sscanf?
Anders F Björklund
afb at algonet.se
Mon Apr 30 06:44:00 PDT 2007
Daniel Keep wrote:
> For a current project, I've had to go and implement a D version of C's
> venerable sscanf function. Thanks to a combination of regular
> expressions, templates and tuples, the sucker's type-safe and
> arbitrarily extensible.
I called mine "unformat", to match "format". Like writef / readf.
No regular expressions or templates or tuples back then, though.
> Anyway, it's good enough for what I need, but I was wondering if there's
> any demand for it in the standard library. I'm happy to work to bring
> it up to scratch and public domain it if people want to see it in Phobos
> (and if Walter wants it there, of course.) Heaven knows I've wanted
> this exact function from std.stdio myself a few times. :)
a.k.a. std.stdo :-)
> What do you think?
See
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=19835
--anders
More information about the Digitalmars-d
mailing list