Why I could not cast string to int?

Tobias Pankrath tobias at pankrath.net
Thu Feb 2 07:57:42 PST 2012


Use to!int(args[1])
> I receive:
> $ gdmd-4.6 factorial.d
> factorial.d: In function ‘main’:
> factorial.d:15:0: error: cannot cast expression of type string to int
> 
> 
> Thanks in advance,
> Xan.



More information about the Digitalmars-d-learn mailing list