https://issues.dlang.org/show_bug.cgi?id=4716
Andrei Alexandrescu changed:
What|Removed |Added
Status|NEW |RESOLVED
https://d.puremagic.com/issues/show_bug.cgi?id=4716
Infiltrator lt.infiltra...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4716
--- Comment #2 from bearophile_h...@eml.cc 2011-02-08 13:13:01 PST ---
Adam Ruppe has suggested:
I'd say make it do a combination of writef though, so you can do more
complex prompts.
auto number = ask!int(Enter a number, %s, name);
--
http://d.puremagic.com/issues/show_bug.cgi?id=4716
--- Comment #1 from bearophile_h...@eml.cc 2010-08-23 05:14:22 PDT ---
Improved code. Both IsType() and IsString() may be useful to add to std.traits,
if something similar is not already present.
import std.string: chomp;
import std.stdio: