int input

Rayne DiscipleRayne at gmail.com
Tue Sep 9 21:43:56 PDT 2008


Chris R. Miller Wrote:

> 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.
> 
> 
I found std.conv but this brings me to another problem, whenever it trys to convert it says Error: conversion 1 and closes the console window, anyone know whats wrong here?




More information about the Digitalmars-d mailing list