Re: parse int error

2013-11-03 Thread Peter Eisenhower
On Wednesday, 30 October 2013 at 18:19:13 UTC, Ali Çehreli wrote: On 10/29/2013 06:02 PM, Peter Eisenhower wrote: I am confused as to why I cannot pass the return of the tag attribute directly into the parse int. // This works string s = xml.tag.attr[key]; int key = parse!int(s

parse int error

2013-10-29 Thread Peter Eisenhower
I am confused as to why I cannot pass the return of the tag attribute directly into the parse int. // This works string s = xml.tag.attr[key]; int key = parse!int(s); // Compile error on these int key = parse!int(xml.tag.attr[key]); int key = parse!int(cast(string) cml.tag.attr[key]);

Re: parse int error

2013-10-29 Thread Peter Eisenhower
On Wednesday, 30 October 2013 at 01:02:45 UTC, Peter Eisenhower wrote: I am confused as to why I cannot pass the return of the tag attribute directly into the parse int. // This works string s = xml.tag.attr[key]; int key = parse!int(s); // Compile error on these int key = parse!int