int input

Chris R. Miller lordSaurontheGreat at gmail.com
Tue Sep 9 21:17:03 PDT 2008


Rayne wrote:
> I was wondering, since you can't cast readln, how would you get int input from the user? I know this is a newbish question, but yeah I'm not sure.

To parse?  In tango it's in a parser in tango.text.convert.Integer and
Float.

I don't use Phobos, so if that's the library you're using I'm sorry but
I can't help (there should be an importable parser...)

Which gave me another idea, but I'll start it in a different thread so
as to not hijack yours.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080909/c3b83a8d/attachment.pgp>


More information about the Digitalmars-d mailing list