Cannot cast char[] to string.

2013-11-14 Thread Agustin
I'm trying to use http://dlang.org/phobos/std_net_curl.html and when i compile the same example i get: cannot implicitly convert expression (get(cast(const(char)[])address, AutoProtocol())) of type char[] to string string address = "http://dlang.org";; string _data = get(address);

Re: Cannot cast char[] to string.

2013-11-14 Thread Dicebot
On Thursday, 14 November 2013 at 19:41:13 UTC, Agustin wrote: I'm trying to use http://dlang.org/phobos/std_net_curl.html and when i compile the same example i get: cannot implicitly convert expression (get(cast(const(char)[])address, AutoProtocol())) of type char[] to string string address

Re: Cannot cast char[] to string.

2013-11-14 Thread Brad Anderson
On Thursday, 14 November 2013 at 19:41:13 UTC, Agustin wrote: I'm trying to use http://dlang.org/phobos/std_net_curl.html and when i compile the same example i get: cannot implicitly convert expression (get(cast(const(char)[])address, AutoProtocol())) of type char[] to string string address

Re: Cannot cast char[] to string.

2013-11-14 Thread Ali Çehreli
On 11/14/2013 11:43 AM, Dicebot wrote: On Thursday, 14 November 2013 at 19:41:13 UTC, Agustin wrote: I'm trying to use http://dlang.org/phobos/std_net_curl.html and when i compile the same example i get: cannot implicitly convert expression (get(cast(const(char)[])address, AutoProtocol())) of t

Re: Cannot cast char[] to string.

2013-11-14 Thread Jonathan M Davis
On Thursday, November 14, 2013 20:45:55 Brad Anderson wrote: > On Thursday, 14 November 2013 at 19:41:13 UTC, Agustin wrote: > > I'm trying to use http://dlang.org/phobos/std_net_curl.html and > > when i compile the same example i get: > > > > cannot implicitly convert expression > > (get(cast(con